Remove gitlab CI configuration

This commit is contained in:
Sonny Bakker 2024-10-22 21:44:57 +02:00
parent bf43603d65
commit 11b553784c
5 changed files with 0 additions and 93 deletions

View file

@ -1,29 +0,0 @@
stages:
- build
- test
- lint
- release
variables:
UV_CACHE_DIR: "$CI_PROJECT_DIR/.cache/uv"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
DJANGO_SETTINGS_MODULE: "newsreader.conf.gitlab"
POSTGRES_HOST: "$POSTGRES_HOST"
POSTGRES_DB: "$POSTGRES_NAME"
POSTGRES_NAME: "$POSTGRES_NAME"
POSTGRES_USER: "$POSTGRES_USER"
POSTGRES_PASSWORD: "$POSTGRES_PASSWORD"
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- .cache/pip
- .cache/uv
- node_modules/
- .venv/
include:
- local: '/gitlab-ci/build.yml'
- local: '/gitlab-ci/test.yml'
- local: '/gitlab-ci/lint.yml'
- local: '/gitlab-ci/release.yml'

View file

@ -1,7 +0,0 @@
static:
stage: build
image: node:lts
before_script:
- npm install
script:
- npm run build

View file

@ -1,25 +0,0 @@
python-linting:
stage: lint
image: python:3.11
before_script:
- pip install uv
- uv sync --extra testing --extra ci
script:
- ./.venv/bin/ruff check src/
- ./.venv/bin/ruff format --check src/
only:
refs:
- main
- merge_requests
javascript-linting:
stage: lint
image: node:lts
before_script:
- npm install
script:
- npm run lint
only:
refs:
- main
- merge_requests

View file

@ -1,12 +0,0 @@
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo 'running release job'
release:
name: 'Release $CI_COMMIT_TAG'
description: './CHANGELOG.md'
tag_name: '$CI_COMMIT_TAG'
ref: '$CI_COMMIT_TAG'

View file

@ -1,20 +0,0 @@
python-tests:
stage: test
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/'
services:
- postgres:15
- memcached:1.5.22
image: python:3.11
before_script:
- pip install uv
- uv sync --extra testing --extra ci
script:
- ./.venv/bin/coverage run ./src/manage.py test newsreader
javascript-tests:
stage: test
image: node:lts
before_script:
- npm install
script:
- npm test