Update gitlab jobs
This commit is contained in:
parent
20309e70fa
commit
9d05cac15c
3 changed files with 12 additions and 19 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
static:
|
static:
|
||||||
stage: build
|
stage: build
|
||||||
image: node:12
|
image: node:12-bullseye
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,12 @@
|
||||||
python-linting:
|
python-linting:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: python:3.7
|
image: python:3.9-bullseye
|
||||||
before_script:
|
before_script:
|
||||||
- pip install poetry --quiet
|
- pip install -r requirements/production.txt -r requirements/development.txt
|
||||||
- poetry config cache-dir ~/.cache/poetry
|
|
||||||
- poetry config virtualenvs.in-project true
|
|
||||||
- poetry install --no-interaction --quiet
|
|
||||||
script:
|
script:
|
||||||
- poetry run isort src/ --check-only --recursive
|
- isort src/ --check-only --recursive
|
||||||
- poetry run black src/ --line-length 88 --check
|
- black src/ --line-length 88 --check
|
||||||
- poetry run autoflake src/ --check --recursive --remove-all-unused-imports --ignore-init-module-imports
|
- autoflake src/ --check --recursive --remove-all-unused-imports --ignore-init-module-imports
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- development
|
- development
|
||||||
|
|
@ -17,7 +14,7 @@ python-linting:
|
||||||
|
|
||||||
javascript-linting:
|
javascript-linting:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: node:12
|
image: node:12-bullseye
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,16 @@ python-tests:
|
||||||
services:
|
services:
|
||||||
- postgres:11
|
- postgres:11
|
||||||
- memcached:1.5.22
|
- memcached:1.5.22
|
||||||
image: python:3.7
|
image: python:3.9-bullseye
|
||||||
before_script:
|
before_script:
|
||||||
- pip install poetry --quiet
|
- pip install -r requirements/production.txt -r requirements/development.txt
|
||||||
- poetry --version
|
|
||||||
- poetry config cache-dir .cache/poetry
|
|
||||||
- poetry config virtualenvs.in-project true
|
|
||||||
- poetry install --no-interaction --extras sentry
|
|
||||||
script:
|
script:
|
||||||
- poetry run coverage run src/manage.py test newsreader
|
- ./src/manage.py test newsreader
|
||||||
- poetry run coverage report
|
- coverage report
|
||||||
|
|
||||||
javascript-tests:
|
javascript-tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: node:12
|
image: node:12-bullseye
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue