Skip to content

Commit

Permalink
fix CI given lack of cargo workspace + feature support
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum committed Nov 20, 2019
1 parent 45e53ec commit 9ee4bc1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
24 changes: 18 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@ language: rust
dist: xenial
script:
- 'if [ "$WITH_LOCK" != "true" ]; then cargo update; fi'
- 'cargo test --no-default-features'
- 'cargo test --no-default-features --features futio'
- 'cargo build --all-features --bins --examples'
- 'if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo build --all-features --all-targets; fi'
- 'if [ "$MAY_FAIL" != "true" ]; then cargo test; fi'
- 'if [ "$MAY_FAIL" == "true" ]; then cargo test --all-features; fi'
- 'cargo test --manifest-path body-image/Cargo.toml --no-default-features'
- 'cargo test --manifest-path body-image/Cargo.toml --all-features'
- 'if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; cargo build --manifest-path body-image/Cargo.toml --all-features --all-targets; fi'
- 'cargo test --manifest-path barc/Cargo.toml --no-default-features'
- 'cargo test --manifest-path barc/Cargo.toml --no-default-features --features mmap'
- 'cargo test --manifest-path barc/Cargo.toml --no-default-features --features brotli'
- 'cargo test --manifest-path barc/Cargo.toml --all-features'
- 'if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo build --manifest-path barc/Cargo.toml --all-features --all-targets; fi'
- 'cargo test --manifest-path body-image-futio/Cargo.toml --no-default-features'
- 'cargo test --manifest-path body-image-futio/Cargo.toml --no-default-features --features mmap'
- 'cargo test --manifest-path body-image-futio/Cargo.toml --no-default-features --features brotli'
- 'if [ "$MAY_FAIL" == "true" ]; then cargo test --manifest-path body-image-futio/Cargo.toml --all-features; fi'
- 'if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo build --manifest-path body-image-futio/Cargo.toml --all-targets; fi'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features --features mmap'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features --features brotli'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features --features futio'
- 'cargo build --manifest-path barc-cli/Cargo.toml --all-features'

# See https://levans.fr/rust_travis_cache.html
cache:
Expand Down
16 changes: 14 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,17 @@ install:
build: false

test_script:
- cargo test --no-default-features
- cargo test
- 'cargo test --manifest-path body-image/Cargo.toml --no-default-features'
- 'cargo test --manifest-path body-image/Cargo.toml --all-features'
- 'cargo test --manifest-path barc/Cargo.toml --no-default-features'
- 'cargo test --manifest-path barc/Cargo.toml --no-default-features --features mmap'
- 'cargo test --manifest-path barc/Cargo.toml --no-default-features --features brotli'
- 'cargo test --manifest-path barc/Cargo.toml --all-features'
- 'cargo test --manifest-path body-image-futio/Cargo.toml --no-default-features'
- 'cargo test --manifest-path body-image-futio/Cargo.toml --no-default-features --features mmap'
- 'cargo test --manifest-path body-image-futio/Cargo.toml --no-default-features --features brotli'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features --features mmap'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features --features brotli'
- 'cargo build --manifest-path barc-cli/Cargo.toml --no-default-features --features futio'
- 'cargo build --manifest-path barc-cli/Cargo.toml --all-features'

0 comments on commit 9ee4bc1

Please sign in to comment.