Skip to content

Commit

Permalink
Add cargo fmt to travis build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Atul9 committed May 12, 2020
1 parent 3049f0b commit 1dd471b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ rust:
- beta
- nightly
script:
- |
if [[ $TRAVIS_RUST_VERSION == *stable* ]]
then
rustup component add rustfmt
cargo fmt --version
cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false)
fi
- cargo build --verbose --all
- cargo run --example nested_struct
- cargo run --example simple
- cargo run --example map
os:
- windows
- osx
- linux
- linux

0 comments on commit 1dd471b

Please sign in to comment.