diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e9b095..a166b0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 1002107..471aa33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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)",