Skip to content

Commit 8635a72

Browse files
committed
Update nightly CI
1 parent ae9169f commit 8635a72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ sudo: false
77
install:
88
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
99
- export TARGET=$ARCH-$OS
10+
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then PKG=rust-std-$TARGET; else PKG=rustc; fi
1011
- curl -sO https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
1112
- tar xf rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
1213
- 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
1415
before_script:
1516
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
1617
script:

0 commit comments

Comments
 (0)