From 5e6264961d810fb43f9108f071bc2ae046d9379b Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 14 Feb 2018 19:42:41 +0100 Subject: [PATCH] change CI Job number --- ci/browser_tests.sh | 2 +- nightwatch.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ci/browser_tests.sh b/ci/browser_tests.sh index 93da0c55cc..da6092f4b9 100755 --- a/ci/browser_tests.sh +++ b/ci/browser_tests.sh @@ -15,7 +15,7 @@ SC_VERSION="4.4.0" SAUCECONNECT_URL="https://saucelabs.com/downloads/sc-$SC_VERSION-linux.tar.gz" SAUCECONNECT_USERNAME="chriseth" SAUCECONNECT_ACCESSKEY="b781828a-9e9c-43d8-89d4-2fbb879595ca" -SAUCECONNECT_JOBIDENTIFIER="browsersolidity_tests_${TRAVIS_JOB_NUMBER}" +SAUCECONNECT_JOBIDENTIFIER="browsersolidity_tests_${CIRCLE_BUILD_NUM}" SAUCECONNECT_READYFILE="sc.ready" TEST_EXITCODE=0 diff --git a/nightwatch.js b/nightwatch.js index ab0c6f6295..f8bdab6866 100644 --- a/nightwatch.js +++ b/nightwatch.js @@ -1,6 +1,6 @@ 'use strict' -var TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER +var CIRCLE_BUILD_NUM = process.env.CIRCLE_BUILD_NUM module.exports = { 'src_folders': ['test-browser/tests'], @@ -31,8 +31,8 @@ module.exports = { 'browserName': 'firefox', 'javascriptEnabled': true, 'acceptSslCerts': true, - 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER + 'build': 'build-' + CIRCLE_BUILD_NUM, + 'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM } }, @@ -41,8 +41,8 @@ module.exports = { 'browserName': 'chrome', 'javascriptEnabled': true, 'acceptSslCerts': true, - 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER, + 'build': 'build-' + CIRCLE_BUILD_NUM, + 'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM, 'chromeOptions': { 'args': ['window-size=2560,1440', 'start-fullscreen'] } @@ -56,8 +56,8 @@ module.exports = { 'platform': 'OS X 10.11', 'version': '10.0', 'acceptSslCerts': true, - 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER + 'build': 'build-' + CIRCLE_BUILD_NUM, + 'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM } }, @@ -68,8 +68,8 @@ module.exports = { 'platform': 'Windows 10', 'acceptSslCerts': true, 'version': '11.103', - 'build': 'build-' + TRAVIS_JOB_NUMBER, - 'tunnel-identifier': 'browsersolidity_tests_' + TRAVIS_JOB_NUMBER + 'build': 'build-' + CIRCLE_BUILD_NUM, + 'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM } },