From 6ebb0eeb117935fdc02d0e1ea3f9ac4bc4c08ccc Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sun, 16 Apr 2017 17:22:25 +1000 Subject: [PATCH] Improve ci build parallelization --- .travis.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0d45982..c04c746 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,23 @@ rust: - beta - stable +cache: cargo + +env: + - CARGO_FEATURES="" + - CARGO_FEATURES="eders" + +matrix: + include: + - rust: nightly + env: CARGO_FEATURES="use_simd" + - rust: nightly + env: CARGO_FEATURES="eders use_simd" + script: - - cargo build && cargo test && cargo test --features "eders" - - if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then cargo bench; fi - - if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then cargo build --features "use_simd" && cargo test --features "use_simd" && cargo bench --features "use_simd"; fi + - cargo build --features "$CARGO_FEATURES" + - cargo test --features "$CARGO_FEATURES" + - | + if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then + cargo bench --features "$CARGO_FEATURES" + fi