build Travis & Circle

pull/1/head
yann300 7 years ago
parent a76388c053
commit 9df22ef3c6
  1. 4
      ci/browser_tests.sh
  2. 18
      nightwatch.js

@ -15,7 +15,9 @@ 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_${CIRCLE_BUILD_NUM}"
BUILD_ID=${CIRCLE_BUILD_NUM:-${TRAVIS_JOB_NUMBER}}
echo "$BUILD_ID"
SAUCECONNECT_JOBIDENTIFIER="browsersolidity_tests_${BUILD_ID}"
SAUCECONNECT_READYFILE="sc.ready"
TEST_EXITCODE=0

@ -1,6 +1,6 @@
'use strict'
var CIRCLE_BUILD_NUM = process.env.CIRCLE_BUILD_NUM
var buildId = process.env.CIRCLE_BUILD_NUM || process.env.TRAVIS_JOB_NUMBER
module.exports = {
'src_folders': ['test-browser/tests'],
@ -31,8 +31,8 @@ module.exports = {
'browserName': 'firefox',
'javascriptEnabled': true,
'acceptSslCerts': true,
'build': 'build-' + CIRCLE_BUILD_NUM,
'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM
'build': 'build-' + buildId,
'tunnel-identifier': 'browsersolidity_tests_' + buildId
}
},
@ -41,8 +41,8 @@ module.exports = {
'browserName': 'chrome',
'javascriptEnabled': true,
'acceptSslCerts': true,
'build': 'build-' + CIRCLE_BUILD_NUM,
'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM,
'build': 'build-' + buildId,
'tunnel-identifier': 'browsersolidity_tests_' + buildId,
'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-' + CIRCLE_BUILD_NUM,
'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM
'build': 'build-' + buildId,
'tunnel-identifier': 'browsersolidity_tests_' + buildId
}
},
@ -68,8 +68,8 @@ module.exports = {
'platform': 'Windows 10',
'acceptSslCerts': true,
'version': '11.103',
'build': 'build-' + CIRCLE_BUILD_NUM,
'tunnel-identifier': 'browsersolidity_tests_' + CIRCLE_BUILD_NUM
'build': 'build-' + buildId,
'tunnel-identifier': 'browsersolidity_tests_' + buildId
}
},

Loading…
Cancel
Save