Skip to content
Snippets Groups Projects
Commit 5788cc3c authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Try having morph build everything it wants and then caching it

parent 8565b145
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,23 @@ unit-tests:
script:
- "nix-shell --run 'nix-build nixos/unit-tests.nix' && cat result"
morph-builds:
stage: "test"
environment:
# CACHIX_AUTH_TOKEN, which lets us push to cachix, is supplied by GitLab
# thanks to project-level configuration.
CACHIX_NAME: "privatestorage-opensource"
script:
- |
nix-env -iA nixpkgs.cachix nixpkgs.bash
cachix use privatestorage-opensource
nix path-info --all > /tmp/store-path-pre-build
for grid in morph/grid/*/grid.nix; do
morph build "${grid}"
done
bash -c "comm -13 <(sort /tmp/store-path-pre-build | grep -v '\.drv$') <(nix path-info --all | grep -v '\.drv$' | sort) | cachix push $CACHIX_NAME"
vulnerability-scan:
stage: "test"
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment