about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-10-24 19:22:22 +0000
committerbors <bors@rust-lang.org>2019-10-24 19:22:22 +0000
commit42f32a07f9c1dfbe47582a2dbd2240259061ea12 (patch)
treeb855ce6a07fe652ccdd412f4beb7bc801afe94c5
parentbfef48f1855e452987f2f8038cb484d94672a74f (diff)
parent97d76f55cedae0ff34c8b93797ea078ed0991973 (diff)
downloadrust-42f32a07f9c1dfbe47582a2dbd2240259061ea12.tar.gz
rust-42f32a07f9c1dfbe47582a2dbd2240259061ea12.zip
Auto merge of #4724 - lzutao:minor-appveyor, r=phansch
appveyor: minor syntax change

Use this link to review diff: https://github.com/rust-lang/rust-clippy/pull/4724/files?w=1
changelog: none
-rw-r--r--appveyor.yml63
1 files changed, 33 insertions, 30 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 6168d66b155..58693cb5cc3 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,44 +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
+  # Only build AppVeyor on r+ and try branch
+  only:
+    - auto
+    - try
 
 cache:
-    - '%USERPROFILE%\.cargo'
+  - '%USERPROFILE%\.cargo'
+# before cache
 after_test:
-    - cargo install -Z install-upgrade cargo-cache --debug
-    - cargo cache --autoclean
+  - 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 --profile=minimal
-    - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
-    - del rust-toolchain
-    - cargo install -Z install-upgrade rustup-toolchain-install-master
-    - rustup-toolchain-install-master -f -n master -c rustc-dev
-    - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
-    - 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