File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ sudo: false
7
7
install :
8
8
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
9
9
- export TARGET=$ARCH-$OS
10
+ - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then PKG=rust-std-$TARGET; else PKG=rustc; fi
10
11
- curl -sO https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
11
12
- tar xf rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
12
13
- rm -rf $HOME/rust/lib/rustlib/$TARGET
13
- - mv rust-$TRAVIS_RUST_VERSION-$TARGET/rustc /lib/rustlib/$TARGET $HOME/rust/lib/rustlib
14
+ - mv rust-$TRAVIS_RUST_VERSION-$TARGET/$PKG /lib/rustlib/$TARGET $HOME/rust/lib/rustlib
14
15
before_script :
15
16
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
16
17
script :
You can’t perform that action at this time.
0 commit comments