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

#5: Test needs instead of dependencies

parent f16d9180
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
client-setup:
client:setup:
image: node:10
stage: setup
script:
......@@ -17,21 +17,20 @@ client-setup:
- client/.npm/
- client/node_modules/
client-linting:
client:linting:
image: node:10
stage: test
needs: ["client:setup"]
script:
- cd client
- npm run lint
dependencies:
- client-setup
client-test:
image: node:10
stage: test
needs: ["client:setup"]
script:
- cd client
- npm run test:coverage
dependencies:
- client-setup
coverage: /All files\s*\|\s*([\d\.]+)/
server-setup:
server:setup:
image: python
stage: setup
artifacts:
......@@ -18,11 +18,10 @@ server-setup:
- source env/bin/activate
- pip install -r requirements.txt
server-test:
server:test:
image: python
stage: test
dependencies:
- server-setup
needs: ["server:setup"]
script:
- cd server
- source env/bin/activate
......
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