2022-06-28 02:25:19 +02:00
|
|
|
image: nixos/nix:2.9.1
|
|
|
|
|
|
|
|
variables:
|
|
|
|
NIX_CONFIG: "experimental-features = nix-command flakes"
|
|
|
|
|
2022-08-10 12:26:09 +02:00
|
|
|
before_script:
|
|
|
|
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
|
|
|
- cachix use felschr
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
|
|
|
|
check:
|
|
|
|
stage: test
|
|
|
|
script:
|
2023-11-19 00:54:09 +01:00
|
|
|
- cachix watch-exec felschr nix flake check --no-build
|
2022-08-10 12:26:09 +02:00
|
|
|
|
2022-06-28 02:25:19 +02:00
|
|
|
build:
|
|
|
|
stage: build
|
2022-06-28 02:47:15 +02:00
|
|
|
script:
|
2022-08-10 12:26:09 +02:00
|
|
|
- cachix watch-exec felschr nix build .#deconz
|
2022-06-28 02:47:15 +02:00
|
|
|
- cachix watch-exec felschr nix build .#nixosConfigurations.home-server.config.system.build.toplevel
|
2022-08-10 12:26:09 +02:00
|
|
|
# disabled because GitLab.com runner runs out of space
|
|
|
|
# - cachix watch-exec felschr nix build .#nixosConfigurations.home-pc.config.system.build.toplevel
|
2022-06-28 02:25:19 +02:00
|
|
|
only:
|
|
|
|
- main
|
2022-08-10 12:26:09 +02:00
|
|
|
allow_failure: true
|