This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-markdown-cil/.gitlab-ci.yml

42 lines
922 B
YAML
Raw Normal View History

2021-09-07 04:56:25 +00:00
stages:
- build
2022-02-16 02:59:35 +00:00
- test
- release
2021-09-07 04:56:25 +00:00
default:
2022-02-16 02:59:35 +00:00
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
2021-09-07 04:56:25 +00:00
build:
stage: build
script:
2022-02-16 02:59:35 +00:00
- nix develop --command scripts/ci-build.sh
2021-09-07 04:56:25 +00:00
rules:
2022-02-16 02:59:35 +00:00
- if: $CI_COMMIT_BRANCH
2021-09-07 04:56:25 +00:00
2022-02-16 02:59:35 +00:00
test:
stage: test
script:
- nix develop --command scripts/ci-test.sh
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
2021-09-07 04:56:25 +00:00
artifacts:
when: always
paths:
- ./**/*test-result.xml
- ./coverage/Cobertura.xml
- ./coverage/Summary.*
- ./**/*.nupkg
reports:
junit:
- ./**/*test-result.xml
cobertura:
- ./coverage/Cobertura.xml
2022-02-16 02:59:35 +00:00
release:
stage: release
script:
- nix develop --command scripts/ci-release.sh
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH