language: rust
rust: nightly
sudo: false
+cache: cargo
env:
global:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- - npm install remark remark-lint
+ - npm install remark-cli remark-lint
script:
- set -e
- python util/update_lints.py -c
- cargo build --features debugging
- cargo test --features debugging
- - SYSROOT=~/rust cargo install
- - cargo clippy -- -D clippy
- - cd clippy_lints && cargo clippy -- -D clippy
+ - 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