Change target
This commit is contained in:
parent
3c853126de
commit
34e3438d3b
|
@ -58,13 +58,13 @@ coverage:
|
|||
LLVM_PROFILE_FILE: "coverage-%p-%m.profraw"
|
||||
script:
|
||||
- rustup component add llvm-tools-preview
|
||||
- cargo test
|
||||
- cargo test --verbose --target x86_64-unknown-linux-gnu --all-features
|
||||
# generate html report
|
||||
- cargo install grcov
|
||||
- grcov . --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./coverage/
|
||||
- grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t html --branch --ignore-not-existing --ignore "*cargo*" -o ./coverage/
|
||||
# generate cobertura report for gitlab integration
|
||||
- pip3 install lcov_cobertura
|
||||
- grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "*cargo*" -o coverage.lcov
|
||||
- grcov . --binary-path ./target/x86_64-unknown-linux-gnu/ -s . -t lcov --branch --ignore-not-existing --ignore "*cargo*" -o coverage.lcov
|
||||
- python3 /usr/local/lib/python3.5/dist-packages/lcov_cobertura.py coverage.lcov
|
||||
# output coverage summary for gitlab parsing
|
||||
- apt-get update && apt-get install -y lcov
|
||||
|
|
Loading…
Reference in New Issue