10 - sudo apt-get -qq update
11 - sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
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 fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
18 - if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd net-tokio && cargo build --verbose && cd ..; fi
19 - if [ "$(rustup show | grep default | grep stable)" != "" ]; then
20 wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
21 tar xzf master.tar.gz &&
27 make install DESTDIR=../../kcov-build &&
30 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 &&
31 bash <(curl -s https://codecov.io/bash) &&
32 echo "Uploaded code coverage"; fi