trying out some improvements to hopefully speed up the travis build

master
Paul Woolcock 6 years ago
parent 37d9a38aba
commit a05f4ecb9b
  1. 8
      .travis.yml

@ -6,6 +6,10 @@ addons:
packages: packages:
- libssl-dev - libssl-dev
cache: cargo cache: cargo
env:
- ELEFREN_FEATURES="--features toml"
- ELEFREN_FEATURES="--features all"
- ELEFREN_FEATURES=""
rust: rust:
- stable - stable
- beta - beta
@ -16,9 +20,7 @@ before_script:
script: script:
- | - |
if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi
- cargo clean && cargo build - cargo clean && cargo build $ELEFREN_FEATURES
- cargo clean && cargo build --features toml
- cargo clean && cargo build --features all
- cargo clean && cargo test --features all - cargo clean && cargo test --features all
after_success: | after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then

Loading…
Cancel
Save