Skip to content

Commit 858ab6f

Browse files
committed
add clippy to travis integration
1 parent c7934b0 commit 858ab6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ before_install:
1414
- sudo apt-get -qq update
1515
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
1616

17+
before_script:
18+
- rustup component add clippy
1719
script:
1820
# Support lightning-net-tokio only on Rust stable, beta, and 1.39.0
1921
- if [ "$(rustup show | grep default | grep '1.39.0')" != "" ]; then export BUILD_NET_TOKIO=1; fi
@@ -22,6 +24,9 @@ script:
2224
- if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose; fi
2325
- if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning; fi
2426
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
27+
# Run clippy on Rust 1.39.0
28+
- if [ "$(rustup show | grep default | grep 1.39.0)" != "" ]; then
29+
cargo clippy -- -Aclippy::all -Dclippy::redundant_field_names
2530
# Test the appropriate workspace(s)
2631
- if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose; fi
2732
- if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning; fi

0 commit comments

Comments
 (0)