Skip to content

Commit

Permalink
chore: Disable tests for tagged build
Browse files Browse the repository at this point in the history
If we run tests and build release artifacts we run into travis's 50
minutes timeout. So instead we only build release artifacts and trust
that they have already been run on the branch build
  • Loading branch information
Marwes committed Jul 2, 2018
1 parent 35fd2a4 commit 5d7c803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ matrix:
# Run benchmark and a no-default-features check in a separate
- rust: stable
env:
- DEPLOY=1
- NO_NORMAL_TEST=1
- BENCH_DEFAULT_FEATURES_CHECK=1
- TARGET=x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -70,15 +69,17 @@ env:
- RUST_BACKTRACE=1
script:
- >
if [ ! -z $DISABLE_TESTS ]; then
if [ ! -z $TRAVIS_TAG ]; then
echo "Disabling tests for tagged builds as they timeout otherwise"
elif [ ! -z $DISABLE_TESTS ]; then
return
elif [[ -z ${WASM+set} ]]; then
./scripts/travis.sh
else
rustup target add wasm32-unknown-unknown
cargo check --target wasm32-unknown-unknown -p gluon_c-api
fi
- (cd book && mdbook build)
- mdbook build book

notifications:
webhooks:
Expand Down

0 comments on commit 5d7c803

Please sign in to comment.