Skip to content

Commit 4bcb22a

Browse files
1492: Tweak a few things on CI r=jtgeibel a=jtgeibel * 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) Co-authored-by: Justin Geibel <[email protected]>
2 parents e552fcc + 9d1f7bd commit 4bcb22a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: rust
22
sudo: required
33
dist: trusty
44

5+
# Ignore this branch per bors-ng documentation
56
branches:
67
except:
78
- staging.tmp
@@ -23,9 +24,6 @@ env:
2324
- PERCY_TOKEN=0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
2425
- PERCY_PROJECT=crates-io/crates.io
2526

26-
before_install:
27-
- nvm install 10
28-
2927
install:
3028
- cargo install --force diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
3129

@@ -54,8 +52,10 @@ matrix:
5452
- cargo install --force clippy --vers 0.0.210
5553
- cargo clippy
5654
- rust: stable
57-
script:
55+
before_install:
56+
- nvm install 10
5857
- rustup component add rustfmt-preview
58+
script:
5959
- cargo fmt -- --check
6060
- cargo build
6161
- cargo test
@@ -69,6 +69,9 @@ matrix:
6969
script:
7070
- cargo build
7171
- cargo test
72+
# This portion of the cache is quickly invalidated anyway
73+
before_cache:
74+
- cargo clean
7275

7376
notifications:
7477
email:

0 commit comments

Comments
 (0)