Skip to content

Commit f6e00dd

Browse files
committed
Update travis file to accommodate workspaces
1 parent 5305223 commit f6e00dd

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.travis.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ before_install:
1111
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
1212

1313
script:
14-
- RUSTFLAGS="-C link-dead-code" cargo build --verbose
15-
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
16-
- RUSTFLAGS="-C link-dead-code" cargo test --verbose
17-
- if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then cd lightning/fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
18-
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd lightning-net-tokio && cargo build --verbose && cd ..; fi
19-
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then
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
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
20+
- 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
22+
- 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
24+
- if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then cd lightning/fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
25+
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then
2026
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
2127
tar xzf master.tar.gz &&
2228
cd kcov-master &&

0 commit comments

Comments
 (0)