Skip to content

Commit 03708ce

Browse files
committed
Check formatting in CI
1 parent 2a868fe commit 03708ce

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
language: rust
2+
sudo: false
23
rust:
34
- 1.15.0
5+
- 1.20.0
6+
- 1.26.0 # has_i128
7+
- 1.31.0 # 2018!
48
- stable
59
- beta
610
- nightly
711
env:
812
matrix:
913
- # no features
1014
- FEATURES="full-syntax"
15+
script:
16+
- cargo build --verbose --features="$FEATURES"
17+
- ./ci/test_full.sh
1118

1219
matrix:
1320
include:
1421
# try a no-std target
15-
- rust: stable
22+
- name: "no_std"
23+
rust: stable
1624
env: TARGET=thumbv6m-none-eabi
1725
before_script:
1826
- rustup target add "$TARGET"
@@ -21,10 +29,13 @@ matrix:
2129
# independent features for no-std. (rust-lang/cargo#2589)
2230
- cd check && cargo check --target "$TARGET"
2331

24-
sudo: false
25-
script:
26-
- cargo build --verbose --features="$FEATURES"
27-
- ./ci/test_full.sh
32+
- name: "rustfmt"
33+
rust: 1.31.0
34+
before_script:
35+
- rustup component add rustfmt
36+
script:
37+
- cargo fmt --all -- --check
38+
2839
notifications:
2940
email:
3041
on_success: never

0 commit comments

Comments
 (0)