Skip to content
Snippets Groups Projects
Unverified Commit d0b47ca3 authored by jooola's avatar jooola
Browse files

ci: reenable test job

parent 17db2199
No related branches found
No related tags found
1 merge request!59ci: improve pipeline
...@@ -17,35 +17,41 @@ stages: ...@@ -17,35 +17,41 @@ stages:
- test - test
- build - build
variables:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: funkwhale_network
pre-commit: pre-commit:
extends: [.pre-commit] extends: [.pre-commit]
#tests: tests:
# stage: test stage: test
# services:
# - name: timescale/timescaledb:latest-pg11 image: $CI_REGISTRY/funkwhale/ci/python:3.9
# alias: db services:
# image: python:3.9-alpine3.15 - name: timescale/timescaledb:latest-pg11
# before_script: alias: db
# - apk add python3-dev build-base curl libpq-dev variables:
# - curl -sSL https://install.python-poetry.org | python3 - POSTGRES_PASSWORD: postgres
# - export PATH="/root/.local/bin:$PATH" POSTGRES_DB: funkwhale_network
# - poetry install DB_DSN: user=postgres password=postgres dbname=funkwhale_network host=db
# script: before_script:
# - poetry run pytest --cov-report xml --cov-report term-missing:skip-covered --cov=funkwhale_network --junitxml=report.xml tests/ - |
# variables: DEBIAN_FRONTEND=noninteractive apt-get update
# DB_DSN: user=postgres password=postgres dbname=funkwhale_network host=db DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# artifacts: libpq-dev
# expire_in: 2 weeks - poetry install
# reports: script:
# junit: report.xml - >
# coverage_report: poetry run pytest
# coverage_format: cobertura --cov=funkwhale_network
# path: coverage.xml --cov-report=xml
--cov-report=term-missing:skip-covered
--junitxml=report.xml
tests/
artifacts:
expire_in: 2 weeks
reports:
junit: report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
build: build:
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment