]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
also lint private modules for module_inception, as that is the main issue
[rust.git] / .travis.yml
index 1c131ec98f3b775f714d53fcf431a60f4d701388..056b300f36bc7a8da88786d91580c7ba62abc7ed 100644 (file)
@@ -2,6 +2,11 @@ language: rust
 rust: nightly
 sudo: false
 
+cache:
+  cargo: true
+  directories:
+  - clippy_lints/target
+
 env:
  global:
    # TRAVIS_TOKEN_CLIPPY_SERVICE
@@ -11,24 +16,21 @@ install:
   - . $HOME/.nvm/nvm.sh
   - nvm install stable
   - nvm use stable
-  - npm install remark remark-lint
+  - npm install remark-cli remark-lint
 
 script:
  - set -e
- - remark -f README.md -u remark-lint > /dev/null
+ - remark -f README.md > /dev/null
  - python util/update_lints.py -c
  - cargo build --features debugging
- - rm -rf target/ Cargo.lock
  - cargo test --features debugging
+ - mkdir -p ~/rust/cargo/bin
+ - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
+ - PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy
+ - cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
 
 after_success:
-# only test regex_macros if it compiles
-- |
-    #!/bin/bash
-    cargo test --no-run --features 'debugging test-regex_macros'
-    if [ "$?" != 101 ]; then
-        cargo test --features 'debugging test-regex_macros' compile_test
-    fi
+- ./.github/deploy.sh
 # trigger rebuild of the clippy-service, to keep it up to date with clippy itself
 - |
     #!/bin/bash