Browse Source

Try to fix nightly builds

add-rc-path
Alex Crichton 9 years ago
parent
commit
eb78c53c3c
  1. 3
      .travis.yml

3
.travis.yml

@ -6,11 +6,12 @@ rust:
sudo: false
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then PKG=rust-std; else PKG=rustc; fi
- export TARGET=$ARCH-$OS
- curl -sO https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
- tar xf rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
- rm -rf $HOME/rust/lib/rustlib/$TARGET
- mv rust-$TRAVIS_RUST_VERSION-$TARGET/rustc/lib/rustlib/$TARGET $HOME/rust/lib/rustlib
- mv rust-$TRAVIS_RUST_VERSION-$TARGET/$PKG/lib/rustlib/$TARGET $HOME/rust/lib/rustlib
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:

Loading…
Cancel
Save