Skip to content

Commit abdaeec

Browse files
committed
Cache travis dependencies
1 parent d9d8a81 commit abdaeec

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.travis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: rust
2+
cache: cargo
23

34
rust:
45
- stable
@@ -11,8 +12,17 @@ matrix:
1112

1213
script:
1314
- cargo build --verbose
14-
- cargo build --features iron-handlers --verbose
15+
- cargo build --verbose --release
16+
17+
- cargo build --verbose --features iron-handlers
18+
- cargo build --verbose --features iron-handlers --release
19+
1520
- cargo test --verbose --features iron-handlers
21+
- cargo test --verbose --features iron-handlers --release
22+
23+
before_cache:
24+
rm -rf target/debug/juniper*
25+
rm -rf target/release/juniper*
1626

1727
after_success: |
1828
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then

0 commit comments

Comments
 (0)