зеркало из https://github.com/mozilla/moz-cheddar.git
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:
Родитель
e2c0d50c94
Коммит
4b927f2d7c
10
.travis.yml
10
.travis.yml
|
@ -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:
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ "$TRAVIS_RUST_VERSION" = 'nightly' ]]
|
||||||
|
then
|
||||||
|
$@
|
||||||
|
fi
|
Загрузка…
Ссылка в новой задаче