Merge pull request #1089 from ethereum/travisCircle

build Travis & Circle
pull/1/head
yann300 7 years ago committed by GitHub
commit 7be40bffe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .travis.yml
  2. 4
      ci/browser_tests.sh
  3. 18
      nightwatch.js

@ -1,6 +1,10 @@
language: node_js
node_js:
- "7"
branches:
only:
- master
- remix_live
script:
- npm run lint && npm run test && npm run downloadsolc && npm run make-mock-compiler && npm run setupremix && npm run build
- ./ci/browser_tests.sh

@ -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