cyrtophora

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

commit 0086687fc3af4e559692e476038a7d7a8838a36a
parent 6576c5371e5357712b73c74adc374cc463a8ed08
Author: Jackson G. Kaindume <kaindume@kwatafana.org>
Date:   Thu, 22 Sep 2022 16:43:03 +0200

[ci]

Diffstat:
M.gitlab-ci.yml | 41+++++++++++++++++++++++++++++++++++++++--
1 file changed, 39 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -1,2 +1,39 @@ -# The Docker image that will be used to build your app -image: rustdocker/rust:stable +.cargo_test_template: &cargo_test + stage: test + script: + - cd phora + - mkdir test-data + - cargo test -F sqlite --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: + - cd phora + - cargo doc -F sqlite + - rm -rf public + - mkdir public + - cp -R target/doc/* public + artifacts: + paths: + - public + +# Reference: http://imp.gitlab.io/blog/blog/gitlab-ci-and-rust/