Update gitlab configuration
This commit is contained in:
parent
720f6fdb78
commit
59f719d7c3
3 changed files with 10 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
static:
|
static:
|
||||||
stage: build
|
stage: build
|
||||||
image: node:12-bullseye
|
image: node:16-bookworm
|
||||||
before_script:
|
before_script:
|
||||||
- npm install --quiet
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
python-linting:
|
python-linting:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: python:3.9-bullseye
|
image: python:3.11-bookworm
|
||||||
before_script:
|
before_script:
|
||||||
- pip install -r requirements/production.txt -r requirements/development.txt --quiet
|
- pip install -r requirements/ci.txt
|
||||||
script:
|
script:
|
||||||
- isort src/ --check-only
|
- isort src/ --check-only
|
||||||
- black src/ --line-length 88 --check
|
- black src/ --line-length 88 --check
|
||||||
|
|
@ -14,9 +14,9 @@ python-linting:
|
||||||
|
|
||||||
javascript-linting:
|
javascript-linting:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: node:12-bullseye
|
image: node:16-bookworm
|
||||||
before_script:
|
before_script:
|
||||||
- npm install --quiet
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
only:
|
only:
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,16 @@ python-tests:
|
||||||
services:
|
services:
|
||||||
- postgres:15
|
- postgres:15
|
||||||
- memcached:1.5.22
|
- memcached:1.5.22
|
||||||
image: python:3.9-bullseye
|
image: python:3.11-bookworm
|
||||||
before_script:
|
before_script:
|
||||||
- pip install -r requirements/production.txt -r requirements/development.txt --quiet
|
- pip install -r requirements/ci.txt
|
||||||
script:
|
script:
|
||||||
- coverage run ./src/manage.py test newsreader
|
- coverage run ./src/manage.py test newsreader
|
||||||
|
|
||||||
javascript-tests:
|
javascript-tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: node:12-bullseye
|
image: node:16-bookworm
|
||||||
before_script:
|
before_script:
|
||||||
- npm install --quiet
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue