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: stages:
- setup - setup
- test - test
- client-install
- client-test
include: include:
- local: .gitlab/server.gitlab-ci.yml - local: .gitlab/server.gitlab-ci.yml
......
image: node:10 client-setup:
image: node:10
install: stage: setup
stage: client-install
script: script:
- cd client - cd client
- npm install - npm install
artifacts: artifacts:
name: "artifacts" name: "artifacts"
untracked: true untracked: true
expire_in: 60 mins expire_in: 15 mins
paths: paths:
- client/.npm/ - client/.npm/
- client/node_modules/ - client/node_modules/
linting: client-linting:
stage: client-test image: node:10
stage: test
script: script:
- cd client - cd client
- npm run lint - npm run lint
dependencies: dependencies:
- install - client-setup
test:unit: client-test:
stage: client-test image: node:10
stage: test
script: script:
- cd client - cd client
- npm run test:coverage - npm run test:coverage
dependencies: dependencies:
- install - client-setup
coverage: /All files\s*\|\s*([\d\.]+)/ 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