1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-18 09:41:49 +01:00

travis config

This commit is contained in:
Nikolay Kim 2019-03-14 11:55:39 -07:00
parent c9b86712e5
commit 6659b192d3
2 changed files with 28 additions and 5 deletions

View File

@ -24,6 +24,11 @@ before_install:
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -y openssl libssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev - sudo apt-get install -y openssl libssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
# Add clippy # Add clippy
before_script: before_script:
- export PATH=$PATH:~/.cargo/bin - export PATH=$PATH:~/.cargo/bin
@ -41,11 +46,28 @@ script:
cd actix-utils && cargo test && cd .. cd actix-utils && cargo test && cd ..
cd router && cargo test && cd .. cd router && cargo test && cd ..
fi fi
after_success:
- | - |
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install -f --git https://github.com/xd009642/tarpaulin.git --branch develop RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
cargo tarpaulin --features="ssl,tls,rust-tls" --out Xml #cd actix-service && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
bash <(curl -s https://codecov.io/bash) #cd actix-rt && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
#cd actix-connect && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
#cd actix-codec && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
#cd actix-server && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
#cd actix-utils && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
#cd router && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
cd actix-service && cargo tarpaulin --out Xml && cd ..
#cd actix-rt && cargo tarpaulin --out Xml && cd ..
cd actix-connect && cargo tarpaulin --out Xml && cd ..
#cd actix-codec && cargo tarpaulin --out Xml && cd ..
#cd actix-server && cargo tarpaulin --out Xml && cd ..
cd actix-utils && cargo tarpaulin --out Xml && cd ..
cd router && cargo tarpaulin --out Xml && cd ..
# cargo tarpaulin --all --all-features --out Xml
echo "Uploaded code coverage" echo "Uploaded code coverage"
cargo tarpaulin --all --all-features --out Xml && bash <(curl -s https://codecov.io/bash) bash <(curl -s https://codecov.io/bash)
fi fi

View File

@ -245,7 +245,7 @@ mod tests {
let (tx3, rx3) = oneshot::channel(); let (tx3, rx3) = oneshot::channel();
let (tx_stop, rx_stop) = oneshot::channel(); let (tx_stop, rx_stop) = oneshot::channel();
std::thread::spawn(move || { let h = std::thread::spawn(move || {
let rx1 = rx1; let rx1 = rx1;
let rx2 = rx2; let rx2 = rx2;
let rx3 = rx3; let rx3 = rx3;
@ -274,5 +274,6 @@ mod tests {
let _ = tx1.send(1); let _ = tx1.send(1);
let _ = rx_stop.wait(); let _ = rx_stop.wait();
let _ = h.join();
} }
} }