]> git.lizzy.rs Git - rust.git/blobdiff - appveyor.yml
Disable chalk integration test. Output too large
[rust.git] / appveyor.yml
index f50d1e88a24f2a3214fc17b46b8fdbd859d8aaf7..58693cb5cc344eb1ff1c9d31f28fe9804a579f20 100644 (file)
@@ -1,33 +1,47 @@
 environment:
-    global:
-        PROJECT_NAME: rust-clippy
-    matrix:
-        #- TARGET: i686-pc-windows-gnu
-        #- TARGET: i686-pc-windows-msvc
-        #- TARGET: x86_64-pc-windows-gnu
-        - TARGET: x86_64-pc-windows-msvc
+  global:
+    PROJECT_NAME: rust-clippy
+    RUST_BACKTRACE: 1
+  matrix:
+    #- TARGET: i686-pc-windows-gnu
+    #- TARGET: i686-pc-windows-msvc
+    #- TARGET: x86_64-pc-windows-gnu
+    - TARGET: x86_64-pc-windows-msvc
+
+branches:
+  # Only build AppVeyor on r+ and try branch
+  only:
+    - auto
+    - try
+
+cache:
+  - '%USERPROFILE%\.cargo'
+# before cache
+after_test:
+  - cargo install -Z install-upgrade cargo-cache --debug
+  - cargo cache --autoclean
 
 install:
-    - curl -sSf -o rustup-init.exe https://win.rustup.rs/
-    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
-    - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
-    - git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt
-    - set /p RUSTC_HASH=<rustc-hash.txt
-    - del rust-toolchain
-    - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
-    - rustup-toolchain-install-master %RUSTC_HASH% -f -n master
-    - rustup default master
-    - set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
-    - rustc -V
-    - cargo -V
+  - curl -sSf -o rustup-init.exe https://win.rustup.rs/
+  - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
+  - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
+  - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
+  - del rust-toolchain
+  - cargo install -Z install-upgrade rustup-toolchain-install-master
+  - rustup-toolchain-install-master -f -n master -c rustc-dev
+  - rustup override set master
+  - rustc -V
+  - cargo -V
 
+# Build settings, not to be confused with "before_build" and "after_build".
 build: false
 
+build_script:
+  - cargo build --features debugging
+
 test_script:
-    - set RUST_BACKTRACE=1
-    - cargo build --features debugging
-    - cargo test --features debugging
+  - cargo test --features debugging
 
 notifications:
-    - provider: Email
-      on_build_success: false
+  - provider: Email
+    on_build_success: false