Newer
Older
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/ # makes the virtual env available for jobs
stages:
- venv update # Keep the cached virtual env up to date with dependencies
- tests and linting # Run test/linting for frontend and backend
backend lint:
before_script:
- python -V
backend test:
before_script:
- python -V
coverage_report:
coverage_format: cobertura
path: coverage.xml
before_script:
- python -V
stage: tests and linting
script:
- cd frontend
- npm install -g npm@latest
- npm ci
- npm run coverage:ci
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
stage: tests and linting
script:
- cd frontend
- npm install -g npm@latest
- npm ci
- npm run lint
script:
- cd frontend
- npm install -g npm@latest
- NODE_ENV=production