Skip to content

Commit 104a6b3

Browse files
committed
[ci] enable clippy
1 parent 434a69f commit 104a6b3

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ install:
1515
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
1616
- rustc -vV
1717
- cargo -vV
18+
- cargo install clippy
1819

1920
build: false
2021

2122
test_script:
22-
- cargo test --target %TARGET%
23-
- cargo test --target %TARGET% --release
23+
- C:\msys64\usr\bin\sh ci\run.sh
2424

2525
branches:
2626
only:

.travis.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@ matrix:
1616
script: ci/run.sh
1717
- install: true
1818
script: ci/dox.sh
19-
19+
- env: CLIPPY=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
20+
allow_failures:
21+
- env: CLIPPY=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
2022
install:
21-
- if [ "$NO_ADD" = "" ]; then rustup target add $TARGET; fi
23+
- if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
2224

2325
script:
2426
- cargo generate-lockfile
25-
- ci/run-docker.sh $TARGET
27+
- if [[ "${CLIPPY}" == "" ]]; then ci/run-docker.sh $TARGET; fi
28+
- |
29+
if [[ "${CLIPPY}" == "On" ]]; then
30+
cargo install clippy
31+
cargo clippy --all -- -D clippy-pedantic
32+
fi
2633
2734
notifications:
2835
email:

ci/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -ex
44

55
cargo test --target $TARGET
66
cargo test --release --target $TARGET
7+
cargo clippy --all -- -D clippy-pedantic

0 commit comments

Comments
 (0)