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

config: Only run tests on merge or dev and run only when needed

parent 0e286ff2
No related branches found
No related tags found
No related merge requests found
client:setup:
image: node:10
stage: setup
only:
refs:
- dev
- merge_requests
changes:
- client/**/*
script:
- cd client
- npm install
......@@ -21,6 +27,12 @@ client:linting:
image: node:10
stage: test
needs: ["client:setup"]
only:
refs:
- dev
- merge_requests
changes:
- server/**/*
script:
- cd client
- npm run lint
......@@ -29,8 +41,13 @@ client:test:
image: node:10
stage: test
needs: ["client:setup"]
only:
refs:
- dev
- merge_requests
changes:
- server/**/*
script:
- cd client
- npm run test:coverage
coverage: /All files\s*\|\s*([\d\.]+)/
server:setup:
image: python
stage: setup
only:
refs:
- dev
- merge_requests
changes:
- server/**/*
artifacts:
paths:
- server/env
......@@ -22,6 +28,12 @@ server:test:
image: python
stage: test
needs: ["server:setup"]
only:
refs:
- dev
- merge_requests
changes:
- server/**/*
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