@@ -11,17 +11,27 @@ before_install:
11
11
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
12
12
13
13
script :
14
- # Build workspaces with Rust stable, beta, and 1.34.0
15
- - if [ "$(rustup show | grep default | grep 1.22.0 )" = = "" ]; RUSTFLAGS="-C link-dead-code" cargo build --verbose
14
+ # Build workspaces with Rust stable
15
+ - if [ "$(rustup show | grep default | grep stable )" ! = "" ]; RUSTFLAGS="-C link-dead-code" cargo build --verbose
16
16
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
17
- # Build lightning workspace with Rust 1.22.0
18
- - if [ "$(rustup show | grep default | grep 1.22.0)" != "" ]; RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning
19
- # Test workspaces for Rust stable, beta, and 1.34.2
17
+
18
+ # Build lightning workspace with Rust stable, beta, 1.22.0, and 1.34.0
19
+ - RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning
20
+ - rm -f target/debug/lightning-* # Make sure we drop old test binaries
21
+
22
+ # Build lightning workspace with Rust stable
23
+ - if [ "$(rustup show | grep default | grep stable)" != "" ]; RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning-net-tokio
24
+ - rm -f target/debug/lightning-* # Make sure we drop old test binaries
25
+
26
+ # Test workspaces for Rust stable, beta, and 1.34.2
20
27
- if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; RUSTFLAGS="-C link-dead-code" cargo test --verbose
21
- # Test lightning workspace for 1.22.0
28
+
29
+ # Test lightning workspace for 1.22.0
22
30
- if [ "$(rustup show | grep default | grep 1.22.0)" != "" ]; RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning
23
- # Run lightning workspace fuzz tests for Rust 1.34.2
31
+
32
+ # Run lightning workspace fuzz tests for Rust 1.34.2
24
33
- if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then cd lightning/fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
34
+
25
35
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then
26
36
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
27
37
tar xzf master.tar.gz &&
0 commit comments