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

Resolve "Improve gitlab pipelines"

parent 7b12fa89
No related branches found
No related tags found
1 merge request!7Resolve "Improve gitlab pipelines"
stages:
- server-test
- client-install
- client-test
- setup
- test
include:
- local: .gitlab/server.gitlab-ci.yml
......
image: node:10
install:
stage: client-install
client:setup:
image: node:10
stage: setup
script:
- cd client
- npm install
artifacts:
name: "artifacts"
untracked: true
expire_in: 60 mins
expire_in: 15 mins
paths:
- client/.npm/
- client/node_modules/
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- client/.npm/
- client/node_modules/
linting:
stage: client-test
client:linting:
image: node:10
stage: test
needs: ["client:setup"]
script:
- cd client
- npm run lint
dependencies:
- install
test:unit:
stage: client-test
client:test:
image: node:10
stage: test
needs: ["client:setup"]
script:
- cd client
- npm run test:coverage
dependencies:
- install
coverage: /All files\s*\|\s*([\d\.]+)/
test-server:
server:setup:
image: python
stage: setup
artifacts:
paths:
- server/env
expire_in: 15 min
untracked: true
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- server/env/
stage: server-test
- server/env
script:
- python --version
- pip install virtualenv
......@@ -13,4 +17,12 @@ test-server:
- python -m venv env
- source env/bin/activate
- pip install -r requirements.txt
server:test:
image: python
stage: test
needs: ["server:setup"]
script:
- cd server
- source env/bin/activate
- pytest --cov app tests/
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