1
0
mirror of https://gitlab.com/Anson-Projects/anson-stuff/zinetest.git synced 2025-06-15 21:46:40 +00:00
zinetest/.gitlab-ci.yml
2024-02-10 01:40:54 -07:00

41 lines
561 B
YAML

stages:
- test
- deploy
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- target/
- cargo/
before_script:
- rustup default stable
- cargo --version
- rustc --version
test:
stage: test
script:
- cargo test --verbose
build_site:
stage: build_site
script:
- cargo run
- mv output public
artifacts:
paths:
- public
pages:
stage: deploy
script:
- echo "Publishing site..."
dependencies:
- build_site
artifacts:
paths:
- public
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"