Skip to content
Snippets Groups Projects
Commit 230a689b authored by Victor Löfgren's avatar Victor Löfgren
Browse files

#5: Restructure client test

parent 2d86c13d
No related branches found
No related tags found
1 merge request!7Resolve "Improve gitlab pipelines"
stages:
- setup
- test
- client-install
- client-test
include:
- local: .gitlab/server.gitlab-ci.yml
......
image: node:10
install:
stage: client-install
client-setup:
image: node:10
stage: setup
script:
- cd client
- npm install
artifacts:
name: "artifacts"
untracked: true
expire_in: 60 mins
expire_in: 15 mins
paths:
- client/.npm/
- client/node_modules/
linting:
stage: client-test
client-linting:
image: node:10
stage: test
script:
- cd client
- npm run lint
dependencies:
- install
- client-setup
test:unit:
stage: client-test
client-test:
image: node:10
stage: test
script:
- cd client
- npm run test:coverage
dependencies:
- install
- client-setup
coverage: /All files\s*\|\s*([\d\.]+)/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment