]> git.lizzy.rs Git - rust.git/blobdiff - appveyor.yml
Fix regression with `print!`
[rust.git] / appveyor.yml
index 78420e2319290796d8fa1b425492b2e26fbc5454..c17b12a33b3814775f9e103ffd628e2629d5b911 100644 (file)
@@ -3,18 +3,19 @@ environment:
         PROJECT_NAME: rust-clippy
     matrix:
         - TARGET: i686-pc-windows-gnu
-          MSYS2_BITS=32
+          MSYS2_BITS32
         - TARGET: i686-pc-windows-msvc
-          MSYS2_BITS=32
+          MSYS2_BITS32
         - TARGET: x86_64-pc-windows-gnu
-          MSYS2_BITS=64
+          MSYS2_BITS64
         - TARGET: x86_64-pc-windows-msvc
-          MSYS2_BITS=64
+          MSYS2_BITS64
 
 install:
+    - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
     - 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
+    - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
     - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
     - rustc -V
     - cargo -V
@@ -22,12 +23,12 @@ install:
 build: false
 
 test_script:
+    - set RUST_BACKTRACE=1
     - cargo build --features debugging
     - cargo test --features debugging
-    - mkdir -p rust/cargo/bin
-    - copy target/debug/cargo-clippy rust/cargo/bin/cargo-clippy
-    - PATH=%PATH%;rust/cargo/bin cargo clippy -- -D clippy
-    - cd clippy_lints && PATH=%PATH%;../rust/cargo/bin cargo clippy -- -D clippy && cd ..
+    - copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
+    - cargo clippy -- -D clippy
+    - cd clippy_lints && cargo clippy -- -D clippy && cd ..
 
 notifications:
     - provider: Email