diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8f062cc2..11730ce19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,7 +44,7 @@ node modules: - .npm - node_modules script: - - "nix shell .#gnumake .#gup .#nodejs-14_x --command make node_modules" + - make node_modules before_script: &nix-before - git config --global init.defaultBranch master # - install -v -m 0700 -d ~/.ssh @@ -65,7 +65,7 @@ node modules: well-known: stage: setup script: - - "nix shell .#gnumake .#nodejs-14_x .#exiftool --command make well-known" + - make well-known before_script: *nix-before needs: - job: node modules @@ -93,9 +93,7 @@ backend dependencies: - .stack - .stack-work script: - - "nix shell .#gnumake .#stack .#coreutils .#prepare-env --command sh -c 'prepare-env && make backend-dependencies'" # TODO maybe remove prepare-env - - "ls -a ." # TODO: debug only - - "ls -a ${HOME}/.stack" + - make backend-dependencies before_script: *nix-before artifacts: paths: @@ -110,7 +108,7 @@ backend dependencies: frontend lint: stage: lint script: - - "nix shell .#gnumake .#nodejs-14_x --command make frontend-lint" + - make frontend-lint before_script: *nix-before cache: - *frontend-cache @@ -127,8 +125,7 @@ backend lint: cache: - *stack-cache script: - - "ls -a ." # TODO: debug only - - "nix shell .#gnumake .#stack .#tzdata --command 'prepare-env && make backend-lint-prod'" + - make backend-lint-prod before_script: *nix-before needs: - job: backend dependencies @@ -142,7 +139,7 @@ frontend build: cache: - *frontend-cache script: - - "nix shell .#gnumake .#nodejs-14_x --command make frontend-build" + - make frontend-build before_script: *nix-before needs: - job: node modules @@ -166,7 +163,7 @@ backend build: cache: - *stack-cache script: - - nix shell .#gnumake .#coreutils .#stack .#tzdata --command "prepare-env && make bin/uniworx" + - make bin/uniworx - cp $(stack path --dist-dir)/build/hlint/hlint bin/test-hlint - cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod before_script: *nix-before @@ -195,7 +192,7 @@ backend build: uniworxdb: stage: build script: - - nix shell .#gnumake .#coreutils .#stack .#tzdata --command "prepare-env && make bin/uniworxdb" + - make bin/uniworxdb before_script: *nix-before needs: - job: node modules # transitive @@ -249,7 +246,7 @@ uniworx:exe:uniworxload: frontend test: stage: test script: - - nix shell .#gnumake .#nodejs-14_x .#chromium .#tzdata --command "prepare-env && make frontend-test" + - make frontend-test before_script: *nix-before cache: *frontend-cache needs: