cyrtophora

Full-stack users-first, secure web framework.
git clone https://gitlab.com/kwatafana/cyrtophora.git
Log | Files | Refs | README

commit a496ed77344af1f3115601848cfcfacbc14e3ba6
parent 069177e8645d0784b7558be9dca89334c8009fab
Author: Jackson G. Kaindume <kaindume@kwatafana.org>
Date:   Thu, 22 Sep 2022 15:41:18 +0200

add ci

Diffstat:
A.gitlab-ci.yml | 36++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+), 0 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +.cargo_test_template: &cargo_test + stage: test + script: + - cargo test --verbose --jobs 1 + +stages: + - test + - deploy + +stable:cargo: + image: rustdocker/rust:stable + <<: *cargo_test + +beta:cargo: + image: rustdocker/rust:beta + <<: *cargo_test + +nightly:cargo: + image: rustdocker/rust:nightly + <<: *cargo_test + +pages: + image: rustdocker/rust:stable + stage: deploy + only: + - root + script: + - cargo doc + - rm -rf public + - mkdir public + - cp -R target/doc/* public + artifacts: + paths: + - public + +# Reference: http://imp.gitlab.io/blog/blog/gitlab-ci-and-rust/