Update .gitlab-ci.yml
This commit is contained in:
parent
496e1e5a32
commit
1082cea8bd
@ -1,22 +1,51 @@
|
|||||||
default:
|
default:
|
||||||
image: fpco/stack-build:lts-13.21
|
image: fpco/stack-build:lts-13.21
|
||||||
before_script:
|
|
||||||
- apt-get install -y --no-install-recommends build-essential
|
cache:
|
||||||
- ln -s $(which g++-7) $(dirname $(which g++-7))/g++
|
key: "${CI_COMMIT_REF_SLUG}"
|
||||||
|
paths:
|
||||||
|
- .stack
|
||||||
|
- .stack-work
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
|
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
|
||||||
|
|
||||||
cache:
|
stages:
|
||||||
key: "${CI_COMMIT_REF_SLUG}"
|
- setup
|
||||||
paths:
|
- frontend:build
|
||||||
- .stack
|
- yesod:build
|
||||||
- .stack-work
|
- test
|
||||||
|
|
||||||
build:
|
container setup:
|
||||||
stage: build
|
stage: .pre
|
||||||
script:
|
script:
|
||||||
- stack build --copy-bins --local-bin-path $(pwd) --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic
|
- apt-get install -y --no-install-recommends build-essential nodejs chromium
|
||||||
artifacts:
|
- ln -s $(which g++-7) $(dirname $(which g++-7))/g++
|
||||||
paths:
|
|
||||||
- uniworx
|
npm install:
|
||||||
|
stage: setup
|
||||||
|
script:
|
||||||
|
- npm install
|
||||||
|
needs:
|
||||||
|
- container setup
|
||||||
|
|
||||||
|
frontend:build:
|
||||||
|
stage: frontend:build
|
||||||
|
script:
|
||||||
|
- npm run frontend:build
|
||||||
|
needs:
|
||||||
|
- npm install
|
||||||
|
|
||||||
|
yesod:build:dev:
|
||||||
|
stage: yesod:build
|
||||||
|
script:
|
||||||
|
- stack build --copy-bins --local-bin-path $(pwd)/bin --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic
|
||||||
|
needs:
|
||||||
|
- frontend:build
|
||||||
|
|
||||||
|
frontend:test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npm run frontend:test
|
||||||
|
needs:
|
||||||
|
- frontend:build
|
||||||
Reference in New Issue
Block a user