@@ -3,20 +3,20 @@ environment:
3
3
PROJECT_NAME : rust-clippy
4
4
matrix :
5
5
# - TARGET: i686-pc-windows-gnu
6
- # MSYS2_BITS: 32
7
6
# - TARGET: i686-pc-windows-msvc
8
- # MSYS2_BITS: 32
9
7
# - TARGET: x86_64-pc-windows-gnu
10
- # MSYS2_BITS: 64
11
8
- TARGET : x86_64-pc-windows-msvc
12
- MSYS2_BITS : 64
13
9
14
10
install :
15
- - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
16
11
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
17
12
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
18
- - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
19
- - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
13
+ - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
14
+ # https://support.microsoft.com/en-us/help/2524009/error-running-command-shell-scripts-that-include-parentheses
15
+ - if defined GITHUB_TOKEN del rust-toolchain
16
+ - if defined GITHUB_TOKEN (cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed")
17
+ - if defined GITHUB_TOKEN rustup-toolchain-install-master -f -n master --github-token %GITHUB_TOKEN%
18
+ - if defined GITHUB_TOKEN rustup default master
19
+ - if defined GITHUB_TOKEN set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
20
20
- rustc -V
21
21
- cargo -V
22
22
@@ -26,9 +26,6 @@ test_script:
26
26
- set RUST_BACKTRACE=1
27
27
- cargo build --features debugging
28
28
- cargo test --features debugging
29
- # - copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
30
- # - cargo clippy -- -D clippy
31
- # - cd clippy_lints && cargo clippy -- -D clippy && cd ..
32
29
33
30
notifications :
34
31
- provider : Email
0 commit comments