Skip to content
Snippets Groups Projects
Commit 14faa799 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
1 merge request!7Resolve "Improve gitlab pipelines"
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:
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