-
Jean-Paul Calderone authored
`name` does not exist. I think the `environment` section of the configuration tricked me.
Jean-Paul Calderone authored`name` does not exist. I think the `environment` section of the configuration tricked me.
.gitlab-ci.yml 3.07 KiB
default:
# Guide the choice of an appropriate runner for all these jobs.
# https://docs.gitlab.com/ee/ci/runners/#runner-runs-only-tagged-jobs
tags:
- "nixos"
- "shell"
docs:
stage: "build"
script:
- "nix-build docs.nix"
- "cp --recursive --no-preserve=mode result/docs/. docs/build/"
artifacts:
paths:
- "docs/build/"
expose_as: "documentation"
unit-tests:
stage: "test"
script:
- "nix-shell --run 'nix-build nixos/unit-tests.nix' && cat result"
.morph-build: &MORPH_BUILD
stage: "test"
timeout: "3 hours"
script:
- |
# GRID is set in one of the "instantiations" of this job template.
nix-shell --run "morph build --show-trace morph/grid/${GRID}/grid.nix"
morph-build-localdev:
<<: *MORPH_BUILD
variables:
GRID: "local"
before_script:
- |
# The local grid configuration is *almost* complete enough to build. It
# just needs this tweak.
sed -i 's/undefined/\"unundefined\"/' morph/grid/${GRID}/public-keys/users.nix
morph-build-testing:
<<: *MORPH_BUILD
variables:
GRID: "testing"
morph-build-production:
<<: *MORPH_BUILD
variables:
GRID: "production"
vulnerability-scan:
stage: "test"
script:
- "ci-tools/vulnerability-scan security-report.json"
- "ci-tools/count-vulnerabilities <security-report.json"
artifacts:
paths:
- "security-report.json"
expose_as: "security report"
system-tests:
stage: "test"
timeout: "3 hours"
script: