Skip to content

Commit

Permalink
Integrate rustfmt into travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Feb 21, 2020
1 parent 8caae31 commit b4ccb00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ before_install:
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev

script:
# Check formatting.
- if [ "$(rustup show | grep stable)" != "" ]; then rustup component add rustfmt && cargo fmt --all -- --check; fi - if [ "$(rustup show | grep 1.34.2)" != "" ]; then rustup component add rustfmt && cd fuzz && cargo fmt --all -- --check && cd ../; fi
# Build workspaces with Rust stable, beta, and 1.34.0
- if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose; fi
# Build lightning workspace with Rust 1.22.0
Expand Down

0 comments on commit b4ccb00

Please sign in to comment.