Skip to content

Commit

Permalink
Tweak a few things on CI
Browse files Browse the repository at this point in the history
* Only install node on the stable branch
* Move rustfmt-preview installation to the before_install step
* Clear target directory on nightly (downloaded crates and the index will still be cached)
  • Loading branch information
jtgeibel committed Sep 19, 2018
1 parent e552fcc commit 9d1f7bd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: rust
sudo: required
dist: trusty

# Ignore this branch per bors-ng documentation
branches:
except:
- staging.tmp
Expand All @@ -23,9 +24,6 @@ env:
- PERCY_TOKEN=0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
- PERCY_PROJECT=crates-io/crates.io

before_install:
- nvm install 10

install:
- cargo install --force diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH

Expand Down Expand Up @@ -54,8 +52,10 @@ matrix:
- cargo install --force clippy --vers 0.0.210
- cargo clippy
- rust: stable
script:
before_install:
- nvm install 10
- rustup component add rustfmt-preview
script:
- cargo fmt -- --check
- cargo build
- cargo test
Expand All @@ -69,6 +69,9 @@ matrix:
script:
- cargo build
- cargo test
# This portion of the cache is quickly invalidated anyway
before_cache:
- cargo clean

notifications:
email:
Expand Down

0 comments on commit 9d1f7bd

Please sign in to comment.