mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
deploy documentation as gitlab pages
This commit is contained in:
parent
b1801f2486
commit
e470f060e3
1 changed files with 31 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
@ -43,6 +44,36 @@ readme:
|
||||||
- cargo readme -t README.tpl >README.md.new
|
- cargo readme -t README.tpl >README.md.new
|
||||||
- diff README.md README.md.new
|
- diff README.md README.md.new
|
||||||
|
|
||||||
|
doc:
|
||||||
|
stage: build
|
||||||
|
image: msrd0/rust:alpine
|
||||||
|
before_script:
|
||||||
|
- cargo -V
|
||||||
|
script:
|
||||||
|
- cargo doc --all-features
|
||||||
|
- 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>' >target/doc/index.html
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- target/doc/
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- cargo/
|
||||||
|
- target/
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: publish
|
||||||
|
image: busybox
|
||||||
|
script:
|
||||||
|
- mv target/doc public
|
||||||
|
- mv tarpaulin-report.html public/coverage.html
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: msrd0/rust:alpine
|
image: msrd0/rust:alpine
|
||||||
|
|
Loading…
Add table
Reference in a new issue