]> Repositorios git - scryer-prolog.git/commitdiff
Enhanced Travis-CI (#512)
authornotoria <[email protected]>
Sat, 16 May 2020 17:51:53 +0000 (19:51 +0200)
committerGitHub <[email protected]>
Sat, 16 May 2020 17:51:53 +0000 (11:51 -0600)
.travis.yml

index 6d526e4bda65df4324ed7ae6e918e657faac511f..001bb6b67f733785e888dc422f245c1ffbaf4a05 100644 (file)
@@ -1,14 +1,31 @@
 language: rust
-rust:
-    - stable
-    - beta
-    - nightly
-matrix:
-    allow_failures:
-        - rust: nightly
-    fast_finish: true
+cache: cargo
+os: linux
+dist: xenial
 
-script:
-    - cargo build --verbose --all
-    - cargo test --verbose --all
-    - cargo test --verbose --all --no-default-features --features num
+before_script:
+  - cargo fetch
+
+jobs:
+  allow_failures:
+    env:
+      - CAN_FAIL=true
+  include:
+  - stage: "Stable: Build"
+    rust: stable
+    script: cargo rustc --verbose -- -D warnings
+    name: "Build Stable"
+  - stage: "Stable: Tests"
+    rust: stable
+    script: cargo test --verbose --all
+    name: "Tests Stable"
+  - stage: "Features"
+    rust: stable
+    script: cargo test --verbose --all --no-default-features --features num
+    name: "num Tests"
+    env: CAN_FAIL=true
+  - stage: "Beta: Build"
+  # - #
+    rust: beta
+    script: cargo rustc --verbose -- -D warnings
+    name: "Build Beta"