diff options
author | chriseth <c@ethdev.com> | 2016-08-02 06:31:08 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-02 17:18:26 +0800 |
commit | 8a801879d13060432ad44822ebc0b3ca9ae722a6 (patch) | |
tree | 6a2a5e557dc20d7a70dcd0d26a2589dd18874873 /.travis.yml | |
parent | f44320269e5324ce0319e0bb256d3a95e2f817c6 (diff) | |
download | dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.tar dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.tar.gz dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.tar.bz2 dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.tar.lz dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.tar.xz dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.tar.zst dexon-solidity-8a801879d13060432ad44822ebc0b3ca9ae722a6.zip |
Parallel builds for emscripten and docs.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 1ee16333..b581f520 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,17 @@ matrix: include: - os: linux dist: trusty + compiler: gcc + env: + - TRAVIS_BUILD_TYPE=RelWithDebInfo + - ZIP_SUFFIX=ubuntu-trusty + - os: linux + dist: trusty + compiler: gcc + env: + - JOB=docs + - os: linux + dist: trusty sudo: required compiler: gcc services: @@ -43,8 +54,7 @@ matrix: before_install: - docker pull trzeci/emscripten:sdk-tag-1.35.4-64bit env: - - TRAVIS_BUILD_TYPE=RelWithDebInfo - - ZIP_SUFFIX=ubuntu-trusty + - JOB=emscripten - os: osx osx_image: beta-xcode6.2 env: @@ -71,19 +81,18 @@ cache: - cryptopp - boost_1_57_0 - build - - build-emscripten - jsoncpp install: - ./scripts/install_deps.sh before_script: - - ./scripts/build_emscripten.sh - - mkdir -p build + - test $JOB != emscripten || ./scripts/build_emscripten.sh + - test $JOB != default || (mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE && make -j2 && cd .. - && ./scripts/release.sh $ZIP_SUFFIX + && ./scripts/release.sh $ZIP_SUFFIX ) script: # There are a variety of reliability issues with the Solidity unit-tests at the time of # writing (especially on macOS), so within TravisCI we will try to run the unit-tests @@ -95,10 +104,12 @@ script: # itself is broken from the failure messages which we are seeing. # # More details on known issues at https://github.com/ethereum/solidity/issues/769 - - cd $TRAVIS_BUILD_DIR && (./scripts/tests.sh || ./scripts/tests.sh || ./scripts/tests.sh) + - test $JOB != default || (cd $TRAVIS_BUILD_DIR && (./scripts/tests.sh || ./scripts/tests.sh || ./scripts/tests.sh) ) + - test $JOB != docs || ./scripts/docs.sh env: global: - ENCRYPTION_LABEL="296c219a3f41" + - JOB=default # This is the deploy target for the Emscripten build. # It publishes the JS file which was compiled as part of the earlier 'build_emscripten.sh' @@ -109,7 +120,7 @@ env: deploy: provider: script - script: scripts/release_emscripten.sh + script: test $JOB != emscripten || scripts/release_emscripten.sh skip_cleanup: true on: branch: develop |