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

2
Cargo.lock generated
View File

@@ -2,7 +2,7 @@
# It is not intended for manual editing.
[[package]]
name = "ansi-parser"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"nom 4.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"num-derive 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",