mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parallel builds for emscripten and docs.
This commit is contained in:
parent
f44320269e
commit
8a801879d1
27
.travis.yml
27
.travis.yml
@ -34,6 +34,17 @@ branches:
|
||||
- /develop-v[0-9]/
|
||||
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
|
||||
@ -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
|
||||
|
@ -85,8 +85,8 @@ echo -en 'travis_fold:end:compiling_boost\\r'
|
||||
# Build dependent components and solidity itself
|
||||
echo -en 'travis_fold:start:compiling_solidity\\r'
|
||||
cd $WORKSPACE
|
||||
mkdir -p build-emscripten
|
||||
cd build-emscripten
|
||||
mkdir -p build
|
||||
cd build
|
||||
emcmake cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DEMSCRIPTEN=1 \
|
||||
@ -125,6 +125,6 @@ emcmake cmake \
|
||||
emmake make -j 4
|
||||
|
||||
cd ..
|
||||
cp build-emscripten/solc/soljson.js ./
|
||||
cp build/solc/soljson.js ./
|
||||
|
||||
echo -en 'travis_fold:end:compiling_solidity\\r'
|
||||
|
Loading…
Reference in New Issue
Block a user