Skip to content

Commit a94d725

Browse files
committed
rustfmt in its own build only
1 parent c53b1cd commit a94d725

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +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 rustfmt-nightly
1918

2019
build: false
2120

2221
test_script:
2322
- cargo test --target %TARGET%
2423
- cargo test --target %TARGET% --release
25-
- cargo fmt -- --write-mode=diff
2624

2725
branches:
2826
only:

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,21 @@ matrix:
1414
script: ci/run.sh
1515
- install: true
1616
script: ci/dox.sh
17+
- env: RUSTFMT=On NO_ADD=1
18+
allow_failures:
19+
- env: RUSTFMT=On NO_ADD=1
1720

1821
install:
19-
- if [ "$NO_ADD" = "" ]; then rustup target add $TARGET; fi
22+
- if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
2023

2124
script:
2225
- cargo generate-lockfile
23-
- cargo install rustfmt-nightly
2426
- ci/run-docker.sh $TARGET
27+
- |
28+
if [[ ${RUSTFMT} == "On" ]]; then
29+
cargo install rustfmt-nightly
30+
cargo fmt -- --write-mode=diff
31+
fi
2532
2633
notifications:
2734
email:

ci/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ set -ex
44

55
cargo test --target $TARGET
66
cargo test --release --target $TARGET
7-
cargo fmt -- --write-mode=diff

0 commit comments

Comments
 (0)