File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ before_install:
14
14
- sudo apt-get -qq update
15
15
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
16
16
17
+ before_script :
18
+ - rustup component add clippy
17
19
script :
18
20
# Support lightning-net-tokio only on Rust stable, beta, and 1.39.0
19
21
- if [ "$(rustup show | grep default | grep '1.39.0')" != "" ]; then export BUILD_NET_TOKIO=1; fi
@@ -22,6 +24,9 @@ script:
22
24
- if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose; fi
23
25
- if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning; fi
24
26
- 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
25
30
# Test the appropriate workspace(s)
26
31
- if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose; fi
27
32
- if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning; fi
You can’t perform that action at this time.
0 commit comments