From 311c45af4dad58e83b74dec6962beb7b7eb874b7 Mon Sep 17 00:00:00 2001 From: Maaz Ahmed <maaz.a@subcom.tech> Date: Fri, 15 Dec 2023 06:52:29 +0000 Subject: [PATCH] Update pipeline config to include building docs --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abb60eb..ebb55e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,21 +1,45 @@ stages: - build - test + - publish -build-job: +build: stage: build image: rust script: - cargo build -unit-test-job: +rustdoc: + stage: build + image: rust + script: + - cargo doc + artifacts: + paths: + - target/doc + +unit-test: stage: test image: rust script: - cargo test --lib -lint-test-job: +lint-test: stage: test image: rust script: - - cargo clippy \ No newline at end of file + - cargo clippy + +docs: + stage: publish + image: alpine + dependencies: + - rustdoc + script: + - mkdir -p public + - mv target/doc public/doc + artifacts: + paths: + - public + only: + - master \ No newline at end of file -- GitLab