File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 5
5
# over time).
6
6
directories :
7
7
- /home/travis/.cargo
8
+ - /home/travis/.rustup
8
9
9
10
os :
10
11
- linux
@@ -17,18 +18,25 @@ before_script:
17
18
# Compute the rust version we use. We do not use "language: rust" to have more control here.
18
19
- |
19
20
if [[ "$TRAVIS_EVENT_TYPE" == cron ]]; then
20
- RUST_TOOLCHAIN=nightly
21
+ RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
21
22
else
22
- RUST_TOOLCHAIN =$(cat rust-version)
23
+ RUSTC_HASH =$(cat rust-version)
23
24
fi
24
25
# install Rust
25
- - curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN"
26
+ - curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain stable
26
27
- export PATH=$HOME/.cargo/bin:$PATH
28
+ - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
29
+ - rustup-toolchain-install-master -f -n master $RUSTC_HASH
30
+ - rustup default master
27
31
- rustc --version
28
32
29
33
script :
30
34
- ./travis.sh
31
35
36
+ after_script :
37
+ # Don't cache this, it's a waste
38
+ - rustup toolchain uninstall master
39
+
32
40
notifications :
33
41
email :
34
42
on_success : never
Original file line number Diff line number Diff line change 1
- nightly-2019-04-03
1
+ f717b58dd70829f105960a071c7992b440720482
You can’t perform that action at this time.
0 commit comments