]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
don't depend on regex_macros anymore
[rust.git] / .travis.yml
index f72ac01bc3eb84983afbf033f7273f255b12d9cd..34e50956cc56b8b1a4d912866bd384c4f4a465c7 100644 (file)
@@ -1,26 +1,31 @@
 language: rust
 rust: nightly
 sudo: false
+cache: cargo
 
 env:
  global:
    # TRAVIS_TOKEN_CLIPPY_SERVICE
    secure: dj8SwwuRGuzbo2wZq5z7qXIf7P3p7cbSGs1I3pvXQmB6a58gkLiRn/qBcIIegdt/nzXs+Z0Nug+DdesYVeUPxk1hIa/eeU8p6mpyTtZ+30H4QVgVzd0VCthB5F/NUiPVxTgpGpEgCM9/p72xMwTn7AAJfsGqk7AJ4FS5ZZKhqFI=
 
+install:
+  - . $HOME/.nvm/nvm.sh
+  - nvm install stable
+  - nvm use stable
+  - npm install remark-cli remark-lint
+
 script:
+ - set -e
+ - 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
 # trigger rebuild of the clippy-service, to keep it up to date with clippy itself
 - |
     #!/bin/bash