adding doc publishing

This commit is contained in:
David Bittner
2019-04-26 22:22:52 -04:00
parent 9b05f6080c
commit b40030c7cf
2 changed files with 20 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ before_script:
stages:
- build
- test
- pages
build:
stage: build
@@ -34,3 +35,21 @@ test:
paths:
- target
- cargo_dir
pages:
stage: docs
script:
- HERE="$(readlink -f .)"
- CARGO_HOME="$HERE/cargo_dir/"
- cargo doc --no-deps
- mv target/doc/ansi_parser public
artifacts:
paths:
- public
cache:
key: ansi-parse
paths:
- target
- cargo_dir