Cache travis dependencies

This commit is contained in:
Magnus Hallin 2016-09-11 20:53:01 +02:00
parent d9d8a8184e
commit abdaeec65a

View file

@ -1,4 +1,5 @@
language: rust language: rust
cache: cargo
rust: rust:
- stable - stable
@ -11,8 +12,17 @@ matrix:
script: script:
- cargo build --verbose - cargo build --verbose
- cargo build --features iron-handlers --verbose - cargo build --verbose --release
- cargo build --verbose --features iron-handlers
- cargo build --verbose --features iron-handlers --release
- cargo test --verbose --features iron-handlers - cargo test --verbose --features iron-handlers
- cargo test --verbose --features iron-handlers --release
before_cache:
rm -rf target/debug/juniper*
rm -rf target/release/juniper*
after_success: | after_success: |
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then