Procházet zdrojové kódy

Add missing env variables for appveyor

Johannes Hofmann před 8 roky
rodič
revize
4d703e3f97
1 změnil soubory, kde provedl 15 přidání a 13 odebrání
  1. 15
    13
      .appveyor.yml

+ 15
- 13
.appveyor.yml Zobrazit soubor

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
 os: Visual Studio 2015
5
 os: Visual Studio 2015
4
 
6
 
5
 environment:
7
 environment:
6
   matrix:
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
     - channel: nightly
9
     - channel: nightly
16
-      target: i686-pc-windows-msvc
17
-    - channel: 1.18.0
18
       target: x86_64-pc-windows-msvc
10
       target: x86_64-pc-windows-msvc
19
-
20
-### GNU Toolchains ###
21
     - channel: nightly
11
     - channel: nightly
22
       target: x86_64-pc-windows-gnu
12
       target: x86_64-pc-windows-gnu
23
     - channel: nightly
13
     - channel: nightly
24
       target: i686-pc-windows-gnu
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
 install:
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
   - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
29
   - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
28
   - rustup-init -yv --default-toolchain %channel% --default-host %target%
30
   - rustup-init -yv --default-toolchain %channel% --default-host %target%
29
   - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
31
   - set PATH=%PATH%;%USERPROFILE%\.cargo\bin