Revert "Use rustc instead of clippy."

This reverts commit ef306a7f9e.

travis-cargo doesn't support --lib or --bin so we can't do this anyway.
This commit is contained in:
Sean Marshallsay 2016-01-04 18:45:24 +00:00
Родитель e2c0d50c94
Коммит 4b927f2d7c
2 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -8,15 +8,15 @@ before_script:
- pip install 'travis-cargo>=0.1.0,<0.2.0' --user - pip install 'travis-cargo>=0.1.0,<0.2.0' --user
- pip install 'CppHeaderParser>=2.7.2,<3.0.0' --user - pip install 'CppHeaderParser>=2.7.2,<3.0.0' --user
- export PATH="$HOME/.local/bin:$PATH" - export PATH="$HOME/.local/bin:$PATH"
- git clone https://github.com/Manishearth/clippy.git - git clone https://github.com/arcnmx/cargo-clippy.git
- cd clippy - cd cargo-clippy
- travis-cargo --only nightly build - travis-cargo --only nightly build
- export CLIPPY_PATH="$PWD/target/debug" - export PATH="$PWD/target/debug:$PATH"
- cd .. - cd ..
script: script:
- travis-cargo build - travis-cargo build
- travis-cargo --only nightly rustc --lib -- -L "$CLIPPY_PATH" -l clippy -Z extra-plugins=clippy -Z no-trans - ./on-nightly cargo clippy --lib
- travis-cargo --only nightly rustc --bin cheddar -- -L "$CLIPPY_PATH" -l clippy -Z extra-plugins=clippy -Z no-trans - ./on-nightly cargo clippy --bin cheddar
- travis-cargo test - travis-cargo test
- travis-cargo --only stable doc - travis-cargo --only stable doc
after_success: after_success:

6
on-nightly Executable file
Просмотреть файл

@ -0,0 +1,6 @@
#!/usr/bin/env bash
if [[ "$TRAVIS_RUST_VERSION" = 'nightly' ]]
then
$@
fi