Skip to content

Commit 0c6dadc

Browse files
committed
[WIP] Add back in missing if statement keywords
1 parent b371ec5 commit 0c6dadc

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

.travis.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,28 @@ 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-
- if [ "$(rustup show | grep default | grep stable)" != "" ]; RUSTFLAGS="-C link-dead-code" cargo build --verbose # Build workspaces with Rust stable
15-
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
16-
- RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning # Build lightning workspace with Rust stable, beta, 1.22.0, and 1.34.0
17-
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
18-
- if [ "$(rustup show | grep default | grep stable)" != "" ]; RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning-net-tokio # Build lightning workspace with Rust stable
19-
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
20-
- if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; RUSTFLAGS="-C link-dead-code" cargo test --verbose # Test workspaces for Rust stable, beta, and 1.34.2
21-
- if [ "$(rustup show | grep default | grep 1.22.0)" != "" ]; RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning # Test lightning workspace for 1.22.0
22-
- if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then cd lightning/fuzz && cargo test --verbose && ./travis-fuzz.sh; fi # Run lightning workspace fuzz tests for Rust 1.34.2
23-
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then
24-
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
25-
tar xzf master.tar.gz &&
26-
cd kcov-master &&
27-
mkdir build &&
28-
cd build &&
29-
cmake .. &&
30-
make &&
31-
make install DESTDIR=../../kcov-build &&
32-
cd ../.. &&
33-
rm -rf kcov-master &&
34-
for file in target/debug/lightning-*; do [ -x "${file}" ] || continue; mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
35-
bash <(curl -s https://codecov.io/bash) &&
36-
echo "Uploaded code coverage"; fi
14+
# Build workspaces with Rust stable, beta, and 1.34.0
15+
- if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose; fi
16+
# Build lightning workspace with Rust 1.22.0
17+
- if [ "$(rustup show | grep default | grep 1.22.0)" != "" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning; fi
18+
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
19+
# Test workspaces for Rust stable, beta, and 1.34.2
20+
- if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose; fi
21+
# Test lightning workspace for 1.22.0
22+
- if [ "$(rustup show | grep default | grep 1.22.0)" != "" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning; fi
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
26+
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
27+
tar xzf master.tar.gz &&
28+
cd kcov-master &&
29+
mkdir build &&
30+
cd build &&
31+
cmake .. &&
32+
make &&
33+
make install DESTDIR=../../kcov-build &&
34+
cd ../.. &&
35+
rm -rf kcov-master &&
36+
for file in target/debug/lightning-*; do [ -x "${file}" ] || continue; mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
37+
bash <(curl -s https://codecov.io/bash) &&
38+
echo "Uploaded code coverage"; fi

0 commit comments

Comments
 (0)