]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Fix prctl SET_NAME and GET_NAME behaviour.
[rust.git] / .travis.yml
index e78c4b9b8b4fa54c30dd66365fd86b0c81af2868..a074d6b14d8da72a8b24d69a924b3daab7210ebb 100644 (file)
@@ -13,16 +13,15 @@ os:
 dist: xenial
 
 # Run in PRs and for bors, but not on master.
-if: branch = auto OR branch = try OR type = pull_request
+if: branch = auto OR branch = try OR type = pull_request OR type = cron
 
 env:
   global:
   - RUST_TEST_NOCAPTURE=1
   - RUST_BACKTRACE=1
+  - CARGO_INCREMENTAL=0
 
 before_script:
-# Linux: install extra stuff for cross-compilation
-- if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt update && sudo apt install gcc-multilib; fi
 # Compute the rust version we use. We do not use "language: rust" to have more control here.
 - |
   if [[ "$TRAVIS_EVENT_TYPE" == cron ]]; then
@@ -31,13 +30,17 @@ before_script:
     RUSTC_HASH=$(cat rust-version)
   fi
 # Install Rust ("stable" toolchain for better caching, it is just used to build rustup-toolchain-install-master)
-- curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain stable
+- curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain stable --profile minimal
 - export PATH=$HOME/.cargo/bin:$PATH
+- rustup default stable
+- rustup toolchain uninstall beta
+- rustup update
 # Install "master" toolchain
-- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
-- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c cargo -c rust-src
+- cargo install rustup-toolchain-install-master
+- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src -c rustc-dev
 - rustup default master
 - rustc --version
+- cargo --version
 
 script:
 - ./travis.sh