Skip to content
Snippets Groups Projects
Commit 4b68c104 authored by Sivert Kronen Hatteberg's avatar Sivert Kronen Hatteberg
Browse files

Adds a build step to the pipeline.

For now we only validate that the packages build without errors
parent a4b31c15
No related branches found
No related tags found
1 merge request!164Add building to the pipeline
Pipeline #100757 canceled
......@@ -11,6 +11,7 @@ cache:
stages:
- venv update # Keep the cached virtual env up to date with dependencies
- tests and linting # Run test/linting for frontend and backend
- build # Build
update:
before_script:
......@@ -39,6 +40,14 @@ backend test:
reports:
cobertura: coverage.xml
backendend build:
before_script:
- python -V
image: python:3.9-buster
stage: build
script:
- poetry build
frontend test:
image: node:14-alpine
stage: tests and linting
......@@ -58,3 +67,13 @@ frontend lint:
- npm install -g npm@latest
- npm ci
- npm run lint
frontend build:
image: node:14-alpine
stage: build
script:
- cd frontend
- npm install -g npm@latest
- NODE_ENV=production
- npm ci
- npm run build:no-env
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