Selaa lähdekoodia

Fix CI scripts

Johannes Hofmann 7 vuotta sitten
vanhempi
commit
caf1328580
2 muutettua tiedostoa jossa 15 lisäystä ja 7 poistoa
  1. 6
    4
      .appveyor.yml
  2. 9
    3
      .travis.yml

+ 6
- 4
.appveyor.yml Näytä tiedosto

@@ -8,14 +8,19 @@ environment:
8 8
   matrix:
9 9
     - channel: nightly
10 10
       target: x86_64-pc-windows-msvc
11
+      cargoflags: --no-default-features
11 12
     - channel: nightly
12 13
       target: x86_64-pc-windows-gnu
14
+      cargoflags: --no-default-features
13 15
     - channel: nightly
14 16
       target: i686-pc-windows-gnu
17
+      cargoflags: --no-default-features
15 18
     - channel: stable
16 19
       target: x86_64-pc-windows-msvc
20
+      cargoflags: --no-default-features
17 21
     - channel: stable
18 22
       target: i686-pc-windows-msvc
23
+      cargoflags: --no-default-features
19 24
     - channel: 1.23.0
20 25
       target: x86_64-pc-windows-msvc
21 26
 
@@ -36,7 +41,4 @@ build: false
36 41
 
37 42
 test_script:
38 43
   - cargo test --verbose
39
-  - ps: >-
40
-        If ($Env:CHANNEL -nq '1.23.0') {
41
-          cargo test --verbose --no-default-features;
42
-        }
44
+  - cargo test --verbose %cargoflags%

+ 9
- 3
.travis.yml Näytä tiedosto

@@ -8,6 +8,12 @@ rust:
8 8
   - nightly
9 9
   - 1.23.0
10 10
 script:
11
-  - cargo test --verbose
12
-  - if [ "$TRAVIS_RUST_VERSION" != "1.23.0" ]; then cargo test --verbose --no-default-features; fi
13
-  - cargo doc --verbose
11
+  - |
12
+      if [ "$TRAVIS_RUST_VERSION" == "1.23.0" ];
13
+        cargo test --verbose;
14
+        cargo doc --verbose --no-deps;
15
+      then
16
+        cargo test --verbose;
17
+        cargo test --verbose --no-default-features;
18
+        cargo doc --verbose;
19
+      fi