fixed gitlab pipeline syntax

This commit is contained in:
Sebastian Wendel 2022-07-12 16:11:46 +02:00
parent 3b03abe653
commit 12c1cdd8ee
No known key found for this signature in database
GPG key ID: 1422B7DF78144640
2 changed files with 15 additions and 15 deletions

3
.envrc
View file

@ -1,5 +1,4 @@
watch_file *.nix **/*.nix watch_file *.nix **/*.nix
use flake use flake
dotenv
eval "$shellHook"

View file

@ -1,12 +1,13 @@
--- ---
variables:
NIX_VERSION: "2.10.0"
NIX_CONFIG: "experimental-features = nix-command flakes ca-references recursive-nix"
default: default:
image: nixpkgs/nix-flakes:nixos-22.05 image: nixos/nix:${NIX_VERSION}
timeout: 1 hours timeout: 1 hours
before_script: before_script:
# - mkdir -p /etc/nix - nix profile install --inputs-from . 'nixpkgs#direnv'
# - cat "${NIX_CONF}" > /etc/nix/nix.conf
- nix profile install --inputs-from . 'nixpkgs#nix-direnv'
# - nix-env -i direnv
# - direnv allow # - direnv allow
stages: stages:
@ -22,12 +23,12 @@ check:
- nix flake show - nix flake show
- nix flake check - nix flake check
lint.yaml: # lint.yaml:
stage: test # stage: test
tags: ['lint'] # tags: ['lint']
script: yamllint -f auto . # script: yamllint -f auto .
lint.markdown: # lint.markdown:
stage: test # stage: test
tags: ['lint'] # tags: ['lint']
script: mdl . # script: mdl .