Skip to content
Snippets Groups Projects

Adjust pipeline setup

Merged Andreas Ellewsen requested to merge pipeline-frontend into master
Files
11
+ 43
4
@@ -6,16 +6,55 @@ variables:
cache:
paths:
- .cache/pip
- venv/
- venv/ # makes the virtual env available for jobs
before_script:
- python -V
stages:
- venv update # Keep the cached virtual env up to date with dependencies
- tests and linting # Run test/linting for frontend and backend
test:
update:
before_script:
- python -V
image: python:3.9-buster
stage: venv update
script:
- make install
backend lint:
before_script:
- python -V
image: python:3.9-buster
stage: tests and linting
script:
- make lint
backend test:
before_script:
- python -V
image: python:3.9-buster
stage: tests and linting
script:
- make test
artifacts:
reports:
cobertura: coverage.xml
frontend test:
image: node:14-alpine
stage: tests and linting
script:
- cd frontend
- npm install -g npm@latest
- npm ci
- npm run coverage:ci
coverage:
'/All files[^|]*\|[^|]*\s+([\d\.]+)/'
frontend lint:
image: node:14-alpine
stage: tests and linting
script:
- cd frontend
- npm install -g npm@latest
- npm ci
- npm run lint
Loading