chore(gitlab-ci): replace nix shell calls with barebones make
This commit is contained in:
parent
c978be1f87
commit
3371dc4203
@ -44,7 +44,7 @@ node modules:
|
|||||||
- .npm
|
- .npm
|
||||||
- node_modules
|
- node_modules
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#gup .#nodejs-14_x --command make node_modules"
|
- make node_modules
|
||||||
before_script: &nix-before
|
before_script: &nix-before
|
||||||
- git config --global init.defaultBranch master
|
- git config --global init.defaultBranch master
|
||||||
# - install -v -m 0700 -d ~/.ssh
|
# - install -v -m 0700 -d ~/.ssh
|
||||||
@ -65,7 +65,7 @@ node modules:
|
|||||||
well-known:
|
well-known:
|
||||||
stage: setup
|
stage: setup
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#nodejs-14_x .#exiftool --command make well-known"
|
- make well-known
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
needs:
|
needs:
|
||||||
- job: node modules
|
- job: node modules
|
||||||
@ -93,9 +93,7 @@ backend dependencies:
|
|||||||
- .stack
|
- .stack
|
||||||
- .stack-work
|
- .stack-work
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#stack .#coreutils .#prepare-env --command sh -c 'prepare-env && make backend-dependencies'" # TODO maybe remove prepare-env
|
- make backend-dependencies
|
||||||
- "ls -a ." # TODO: debug only
|
|
||||||
- "ls -a ${HOME}/.stack"
|
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@ -110,7 +108,7 @@ backend dependencies:
|
|||||||
frontend lint:
|
frontend lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#nodejs-14_x --command make frontend-lint"
|
- make frontend-lint
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
cache:
|
cache:
|
||||||
- *frontend-cache
|
- *frontend-cache
|
||||||
@ -127,8 +125,7 @@ backend lint:
|
|||||||
cache:
|
cache:
|
||||||
- *stack-cache
|
- *stack-cache
|
||||||
script:
|
script:
|
||||||
- "ls -a ." # TODO: debug only
|
- make backend-lint-prod
|
||||||
- "nix shell .#gnumake .#stack .#tzdata --command 'prepare-env && make backend-lint-prod'"
|
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
needs:
|
needs:
|
||||||
- job: backend dependencies
|
- job: backend dependencies
|
||||||
@ -142,7 +139,7 @@ frontend build:
|
|||||||
cache:
|
cache:
|
||||||
- *frontend-cache
|
- *frontend-cache
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#nodejs-14_x --command make frontend-build"
|
- make frontend-build
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
needs:
|
needs:
|
||||||
- job: node modules
|
- job: node modules
|
||||||
@ -166,7 +163,7 @@ backend build:
|
|||||||
cache:
|
cache:
|
||||||
- *stack-cache
|
- *stack-cache
|
||||||
script:
|
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/hlint/hlint bin/test-hlint
|
||||||
- cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod
|
- cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
@ -195,7 +192,7 @@ backend build:
|
|||||||
uniworxdb:
|
uniworxdb:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- nix shell .#gnumake .#coreutils .#stack .#tzdata --command "prepare-env && make bin/uniworxdb"
|
- make bin/uniworxdb
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
needs:
|
needs:
|
||||||
- job: node modules # transitive
|
- job: node modules # transitive
|
||||||
@ -249,7 +246,7 @@ uniworx:exe:uniworxload:
|
|||||||
frontend test:
|
frontend test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- nix shell .#gnumake .#nodejs-14_x .#chromium .#tzdata --command "prepare-env && make frontend-test"
|
- make frontend-test
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
cache: *frontend-cache
|
cache: *frontend-cache
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
Reference in New Issue
Block a user