Optimize some CI stuff (#1880)

* CI Optimizations
This commit is contained in:
jackcmay
2018-11-21 12:16:16 -08:00
committed by GitHub
parent 574021041d
commit 59163e2dd9
8 changed files with 80 additions and 45 deletions

View File

@ -24,9 +24,6 @@ maybe_install() {
done
}
_ cargo fmt -- --check
_ cargo clippy -- --version
_ cargo clippy -- --deny=warnings
_ cargo build --all --verbose
_ cargo test --verbose --lib
@ -34,10 +31,10 @@ _ cargo test --verbose --lib
for test in tests/*.rs; do
test=${test##*/} # basename x
test=${test%.rs} # basename x .rs
_ cargo test --verbose --jobs=1 --test="$test" --features="bpf_c"
_ cargo test --verbose --test="$test" -- --test-threads=1
done
# Run native program's tests
# Run native program tests
for program in programs/native/*; do
echo --- "$program"
(
@ -47,14 +44,6 @@ for program in programs/native/*; do
)
done
# Run program/native/bpf_loader's test with bpf_c feature
(
set -x
cd "programs/native/bpf_loader"
echo --- program/native/bpf_loader test --features=bpf_c
cargo test --verbose --features="bpf_c"
)
# Build the HTML
export PATH=$CARGO_HOME/bin:$PATH
maybe_install mdbook
@ -68,5 +57,3 @@ echo --- ci/localnet-sanity.sh
export PATH=$PWD/target/debug:$PATH
USE_INSTALL=1 ci/localnet-sanity.sh
)
_ ci/audit.sh