aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml39
1 files changed, 0 insertions, 39 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 5e32d2a..0000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-stages:
- - lint
- - test
-
-variables:
- POSTGRES_USER: 'pyblackbird_cc'
- POSTGRES_PASSWORD: ''
- POSTGRES_DB: 'test_pyblackbird_cc'
- POSTGRES_HOST_AUTH_METHOD: trust
- CELERY_BROKER_URL: 'redis://redis:6379/0'
-
-precommit:
- stage: lint
- image: python:3.12
- variables:
- PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
- cache:
- paths:
- - ${PRE_COMMIT_HOME}
- before_script:
- - pip install -q pre-commit
- script:
- - pre-commit run --show-diff-on-failure --color=always --all-files
-
-pytest:
- stage: test
- image: docker:25.0
- tags:
- - docker
- services:
- - docker:dind
- before_script:
- - docker compose -f local.yml build
- - docker compose -f docs.yml build
- # Ensure celerybeat does not crash due to non-existent tables
- - docker compose -f local.yml run --rm django python manage.py migrate
- - docker compose -f local.yml up -d
- script:
- - docker compose -f local.yml run django pytest