stages:
- build
- test
- release
default:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
build:
stage: build
script:
- nix develop --command scripts/ci-build.sh
rules:
- if: $CI_COMMIT_BRANCH
test:
stage: test
- nix develop --command scripts/ci-test.sh
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
artifacts:
when: always
paths:
- ./**/*test-result.xml
- ./coverage/Cobertura.xml
- ./coverage/Summary.*
- ./**/*.nupkg
reports:
junit:
cobertura:
release:
stage: release
- nix develop --command scripts/ci-release.sh
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH