From 562b8bd5dded584b24685df616cb60e7607dc575 Mon Sep 17 00:00:00 2001 From: Ales Katona Date: Wed, 23 Jan 2019 16:50:18 -0700 Subject: [PATCH] add documentation generation to CI --- .gitlab-ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b5027c9..2d936e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ image: bitsmart/rust:1.32 stages: - lint - build - - test + - doc lint: stage: lint @@ -28,7 +28,7 @@ build: - cargo build --verbose --features backend_piston,backend_gilrs test: - stage: test + stage: build cache: key: artifacts paths: @@ -37,3 +37,20 @@ test: policy: pull script: - cargo test --features backend_piston,backend_gilrs + +doc: + stage: doc + cache: + key: artifacts + paths: + - target + - Cargo.lock + policy: pull + script: + - cargo doc --features backend_piston,backend_gilrs + - mv target/doc/prongs/ public/ + artifacts: + path: + - public + only: + - master