Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore: avoid cargo build within tox
Browse files Browse the repository at this point in the history
(see the .travis.yml comment)
  • Loading branch information
pjenvey committed May 18, 2018
1 parent 76715be commit 116f556
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,20 @@ matrix:
install:
- ${DDB:+make ddb}
- pip install tox ${CODECOV:+codecov}
- if [ ${WITH_RUST:-true} != "false" ]; then curl https://sh.rustup.rs | sh -s -- -y || travis_terminate 1; fi
- export PATH=$PATH:$HOME/.cargo/bin
- |
if [ ${WITH_RUST:-true} != "false" ]; then
curl https://sh.rustup.rs | sh -s -- -y || travis_terminate 1;
export PATH=$PATH:$HOME/.cargo/bin
# Build here instead of within tox's pip install -e. It hides the output
# which can kill the job on slower travis runs
if [ ${WITH_RUST} == "release" ]; then
export CARGO_ARG="--release"
fi
cargo build --manifest-path autopush_rs/Cargo.toml ${CARGO_ARG:-""} || \
travis_terminate 1
fi
script:
- travis_wait tox -- ${CODECOV:+--with-coverage --cover-xml --cover-package=autopush}
- tox -v -- ${CODECOV:+--with-coverage --cover-xml --cover-package=autopush}
after_success:
- ${CODECOV:+codecov}
notifications:
Expand Down

0 comments on commit 116f556

Please sign in to comment.