Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
network
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
9
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
network
Commits
d0b47ca3
Unverified
Commit
d0b47ca3
authored
2 years ago
by
jooola
Browse files
Options
Downloads
Patches
Plain Diff
ci: reenable test job
parent
17db2199
No related branches found
Branches containing commit
No related tags found
1 merge request
!59
ci: improve pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+32
-26
32 additions, 26 deletions
.gitlab-ci.yml
with
32 additions
and
26 deletions
.gitlab-ci.yml
+
32
−
26
View file @
d0b47ca3
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment