Explorar el Código

travis: Only build without syntex on nightly

Paul Lietar hace 9 años
padre
commit
ae4786e976
Se han modificado 1 ficheros con 4 adiciones y 7 borrados
  1. 4 7
      .travis.yml

+ 4 - 7
.travis.yml

@@ -12,10 +12,7 @@ addons:
 
 script:
     - cargo build --verbose
-    - cargo build --no-default-features --verbose
-
-matrix:
-  allow_failures:
-    - rust:
-      - stable
-      - beta
+    # Building without syntex only works on nightly
+    - if [[ $(rustc --version) == *"nightly"* ]]; then
+        cargo build --no-default-features --verbose;
+      fi