Ver código fonte

Add missing env variables for appveyor

Johannes Hofmann 8 anos atrás
pai
commit
4d703e3f97
1 arquivos alterados com 15 adições e 13 exclusões
  1. 15
    13
      .appveyor.yml

+ 15
- 13
.appveyor.yml Ver arquivo

@@ -1,29 +1,31 @@
1
-# Based on template from here: https://github.com/starkat99/appveyor-rust
1
+# Based on:
2
+# https://github.com/starkat99/appveyor-rust
3
+# https://github.com/alexcrichton/flate2-rs/blob/master/appveyor.yml
2 4
 
3 5
 os: Visual Studio 2015
4 6
 
5 7
 environment:
6 8
   matrix:
7
-
8
-### MSVC Toolchains ###
9
-    - channel: stable
10
-      target: x86_64-pc-windows-msvc
11
-    - channel: stable
12
-      target: i686-pc-windows-msvc
13
-    - channel: nightly
14
-      target: x86_64-pc-windows-msvc
15 9
     - channel: nightly
16
-      target: i686-pc-windows-msvc
17
-    - channel: 1.18.0
18 10
       target: x86_64-pc-windows-msvc
19
-
20
-### GNU Toolchains ###
21 11
     - channel: nightly
22 12
       target: x86_64-pc-windows-gnu
23 13
     - channel: nightly
24 14
       target: i686-pc-windows-gnu
15
+    - channel: stable
16
+      target: x86_64-pc-windows-msvc
17
+    - channel: stable
18
+      target: i686-pc-windows-msvc
19
+    - channel: 1.18.0
20
+      target: x86_64-pc-windows-msvc
25 21
 
26 22
 install:
23
+  - ps: >-
24
+        If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
25
+          $Env:PATH += ';C:\msys64\mingw64\bin'
26
+        } ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
27
+          $Env:PATH += ';C:\MinGW\bin'
28
+        }
27 29
   - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
28 30
   - rustup-init -yv --default-toolchain %channel% --default-host %target%
29 31
   - set PATH=%PATH%;%USERPROFILE%\.cargo\bin