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 image: node:10
stage: setup stage: setup
script: script:
...@@ -17,21 +17,20 @@ client-setup: ...@@ -17,21 +17,20 @@ client-setup:
- client/.npm/ - client/.npm/
- client/node_modules/ - client/node_modules/
client-linting: client:linting:
image: node:10 image: node:10
stage: test stage: test
needs: ["client:setup"]
script: script:
- cd client - cd client
- npm run lint - npm run lint
dependencies:
- client-setup
client-test: client:test:
image: node:10 image: node:10
stage: test stage: test
needs: ["client:setup"]
script: script:
- cd client - cd client
- npm run test:coverage - npm run test:coverage
dependencies:
- client-setup
coverage: /All files\s*\|\s*([\d\.]+)/ coverage: /All files\s*\|\s*([\d\.]+)/
server-setup: server:setup:
image: python image: python
stage: setup stage: setup
artifacts: artifacts:
...@@ -18,11 +18,10 @@ server-setup: ...@@ -18,11 +18,10 @@ server-setup:
- source env/bin/activate - source env/bin/activate
- pip install -r requirements.txt - pip install -r requirements.txt
server-test: server:test:
image: python image: python
stage: test stage: test
dependencies: needs: ["server:setup"]
- server-setup
script: script:
- cd server - cd server
- source env/bin/activate - 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