chore(gitlab-ci): restructure stages
This commit is contained in:
parent
65468f53aa
commit
08a93abb8f
@ -25,16 +25,16 @@ variables:
|
|||||||
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
|
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- frontend:build
|
- setup
|
||||||
- frontend:test
|
- lint
|
||||||
- backend:build
|
- build
|
||||||
- test
|
- test
|
||||||
- container:build
|
- container
|
||||||
- prepare release
|
- prepare release
|
||||||
- release
|
- release
|
||||||
|
|
||||||
node modules:
|
node modules:
|
||||||
stage: frontend:build
|
stage: setup
|
||||||
cache:
|
cache:
|
||||||
- &npm-cache
|
- &npm-cache
|
||||||
key: default-npm
|
key: default-npm
|
||||||
@ -60,8 +60,19 @@ node modules:
|
|||||||
retry: 2
|
retry: 2
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
|
frontend lint:
|
||||||
|
stage: lint
|
||||||
|
script:
|
||||||
|
- "nix-shell --comand 'make frontend-lint'"
|
||||||
|
before_script: *nix-before
|
||||||
|
needs:
|
||||||
|
- job: node modules
|
||||||
|
artifacts: true
|
||||||
|
retry: 2
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
frontend build:
|
frontend build:
|
||||||
stage: frontend:build
|
stage: build
|
||||||
cache:
|
cache:
|
||||||
- &frontend-cache
|
- &frontend-cache
|
||||||
key: default-frontend
|
key: default-frontend
|
||||||
@ -83,19 +94,8 @@ frontend build:
|
|||||||
retry: 2
|
retry: 2
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
frontend lint:
|
|
||||||
stage: frontend:test
|
|
||||||
script:
|
|
||||||
- "nix-shell --comand 'make frontend-lint'"
|
|
||||||
before_script: *nix-before
|
|
||||||
needs:
|
|
||||||
- job: node modules
|
|
||||||
artifacts: true
|
|
||||||
retry: 2
|
|
||||||
interruptible: true
|
|
||||||
|
|
||||||
uniworx:lib:uniworx:
|
uniworx:lib:uniworx:
|
||||||
stage: backend:build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- xzcat frontend.nar.xz | nix-store --import
|
- xzcat frontend.nar.xz | nix-store --import
|
||||||
- nix -L build -o result ".#uniworx:lib:uniworx"
|
- nix -L build -o result ".#uniworx:lib:uniworx"
|
||||||
@ -115,7 +115,7 @@ uniworx:lib:uniworx:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
uniworx:exe:uniworx:
|
uniworx:exe:uniworx:
|
||||||
stage: backend:build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
||||||
- nix -L build -o result ".#uniworx:exe:uniworx"
|
- nix -L build -o result ".#uniworx:exe:uniworx"
|
||||||
@ -137,7 +137,7 @@ uniworx:exe:uniworx:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
uniworx:exe:uniworxdb:
|
uniworx:exe:uniworxdb:
|
||||||
stage: backend:build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
||||||
- nix -L build -o result ".#uniworx:exe:uniworxdb"
|
- nix -L build -o result ".#uniworx:exe:uniworxdb"
|
||||||
@ -159,7 +159,7 @@ uniworx:exe:uniworxdb:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
uniworx:exe:uniworxload:
|
uniworx:exe:uniworxload:
|
||||||
stage: backend:build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
||||||
- nix -L build -o result ".#uniworx:exe:uniworxload"
|
- nix -L build -o result ".#uniworx:exe:uniworxload"
|
||||||
@ -198,7 +198,7 @@ check:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
container:
|
container:
|
||||||
stage: container:build
|
stage: container
|
||||||
script:
|
script:
|
||||||
- xzcat uniworx:exe:uniworx.nar.xz | nix-store --import
|
- xzcat uniworx:exe:uniworx.nar.xz | nix-store --import
|
||||||
- cp -pr --reflink=auto -L $(nix build --print-out-paths ".#uniworxDocker") uniworx.tar.gz
|
- cp -pr --reflink=auto -L $(nix build --print-out-paths ".#uniworxDocker") uniworx.tar.gz
|
||||||
@ -224,7 +224,7 @@ container:
|
|||||||
rules: &release-rules
|
rules: &release-rules
|
||||||
- if: $CI_COMMIT_TAG =~ /^v/
|
- if: $CI_COMMIT_TAG =~ /^v/
|
||||||
test container:
|
test container:
|
||||||
stage: container:build
|
stage: container
|
||||||
script:
|
script:
|
||||||
- xzcat uniworx:exe:uniworx.nar.xz | nix-store --import
|
- xzcat uniworx:exe:uniworx.nar.xz | nix-store --import
|
||||||
- cp -pr --reflink=auto -L $(nix build --print-out-paths ".#uniworxTestDocker") uniworx.tar.gz
|
- cp -pr --reflink=auto -L $(nix build --print-out-paths ".#uniworxTestDocker") uniworx.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user