]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
dont show introduce variable everywhere
[rust.git] / .travis.yml
index 183409acd46903ed44a44552749f08c16fb2545f..8d10a43f0076506bd1fa4a42f32cd3c2a589bf4e 100644 (file)
@@ -4,18 +4,16 @@ before_cache:
     - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
     - rm -f  ./target/.rustc_info.json
 
-env:
-    - CARGO_INCREMENTAL=0
-
 build: &rust_build
     language: rust
-    rust: 1.31.1
+    rust: stable
     script:
-        - cargo gen-tests --verify
-        - cargo gen-syntax --verify
+        - rustup component add rustfmt
+        - rustup component add rust-src
+        - cargo test --no-run  # let's measure compile time separately
         - cargo test
     env:
-        - RUSTFLAGS="-D warnings"
+        - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
 
 matrix:
     include:
@@ -28,7 +26,7 @@ matrix:
               - cd editors/code && npm ci && npm run travis
 
         - os: windows
-          if: branch = master
+          if: branch = master AND type = push
           before_script:
               - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
               - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs