mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
ci: fix tarpaulin report and include cobertura.xml
This commit is contained in:
parent
2cb326a4c3
commit
bb945e2cc6
1 changed files with 4 additions and 3 deletions
|
@ -44,10 +44,12 @@ test-tarpaulin:
|
||||||
- cargo -V
|
- cargo -V
|
||||||
- cargo install cargo-tarpaulin
|
- cargo install cargo-tarpaulin
|
||||||
script:
|
script:
|
||||||
- cargo tarpaulin --target-dir target/tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'derive/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Html -v
|
- cargo tarpaulin --target-dir target/tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'derive/*' --exclude-files 'example/*' --exclude-files 'target/*' --ignore-panics --ignore-tests --out Html --out Xml -v
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- tarpaulin-report.html
|
- tarpaulin-report.html
|
||||||
|
reports:
|
||||||
|
cobertura: cobertura.xml
|
||||||
cache:
|
cache:
|
||||||
key: cargo-stable-all
|
key: cargo-stable-all
|
||||||
paths:
|
paths:
|
||||||
|
@ -96,9 +98,8 @@ pages:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: busybox
|
image: busybox
|
||||||
script:
|
script:
|
||||||
- find . -maxdepth 3
|
|
||||||
- mv tarpaulin-report.html public/coverage.html
|
|
||||||
- mv target/doc public
|
- mv target/doc public
|
||||||
|
- mv tarpaulin-report.html public/coverage.html
|
||||||
- echo '<!DOCTYPE HTML><html><head><meta http-equiv="Refresh" content="0; url=./gotham_restful/index.html"/></head><body>The documentation is located <a href="./gotham_restful/index.html">here</a></body></html>' >public/index.html
|
- echo '<!DOCTYPE HTML><html><head><meta http-equiv="Refresh" content="0; url=./gotham_restful/index.html"/></head><body>The documentation is located <a href="./gotham_restful/index.html">here</a></body></html>' >public/index.html
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
Loading…
Add table
Reference in a new issue