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
Merge requests
!59
The source project of this merge request has been removed.
ci: improve pipeline
Merged
ci: improve pipeline
(removed):ci_base_images
into
main
Overview
6
Commits
5
Pipelines
0
Changes
1
Merged
jooola
requested to merge
(removed):ci_base_images
into
main
2 years ago
Overview
6
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
main
version 4
54c7b768
2 years ago
version 3
e340fa0e
2 years ago
version 2
dce55bfe
2 years ago
version 1
76b4220b
2 years ago
main (base)
and
latest version
latest version
474c0182
5 commits,
2 years ago
version 4
54c7b768
9 commits,
2 years ago
version 3
e340fa0e
7 commits,
2 years ago
version 2
dce55bfe
5 commits,
2 years ago
version 1
76b4220b
5 commits,
2 years ago
1 file
+
54
−
43
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
54
−
43
Options
---
include
:
-
project
:
funkwhale/ci
file
:
/templates/pre-commit.yml
workflow
:
rules
:
# Run for any event on the default branch in the funkwhale namespace
-
if
:
>
$CI_PROJECT_NAMESPACE == "funkwhale" &&
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Run for merge requests
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
stages
:
-
lint
-
test
-
build
variables
:
POSTGRES_PASSWORD
:
postgres
POSTGRES_DB
:
funkwhale_network
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
pre-commit
:
stage
:
lint
image
:
python:3.11
extends
:
[
.pre-commit
]
tests
:
stage
:
test
allow_failure
:
true
image
:
$CI_REGISTRY/funkwhale/ci/python:3.9
services
:
-
name
:
timescale/timescaledb:latest-pg11
alias
:
db
variables
:
PIP_CACHE_DIR
:
$CI_PROJECT_DIR/.cache/pip
PRE_COMMIT_HOME
:
$CI_PROJECT_DIR/.cache/pre-commit
cache
:
paths
:
-
$PIP_CACHE_DIR
-
$PRE_COMMIT_HOME
POSTGRES_PASSWORD
:
postgres
POSTGRES_DB
:
funkwhale_network
DB_DSN
:
user=postgres password=postgres dbname=funkwhale_network host=db
before_script
:
-
pip3 install pre-commit
-
|
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
libpq-dev
-
poetry install
script
:
-
pre-commit run --verbose --all --color=always --show-diff-on-failure
#tests:
# stage: test
# services:
# - name: timescale/timescaledb:latest-pg11
# alias: db
# image: python:3.9-alpine3.15
# before_script:
# - apk add python3-dev build-base curl libpq-dev
# - curl -sSL https://install.python-poetry.org | python3 -
# - export PATH="/root/.local/bin:$PATH"
# - poetry install
# script:
# - poetry run pytest --cov-report xml --cov-report term-missing:skip-covered --cov=funkwhale_network --junitxml=report.xml tests/
# variables:
# DB_DSN: user=postgres password=postgres dbname=funkwhale_network host=db
# artifacts:
# expire_in: 2 weeks
# reports:
# junit: report.xml
# coverage_report:
# coverage_format: cobertura
# path: coverage.xml
-
>
poetry run pytest
--cov=funkwhale_network
--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
:
only
:
-
main
stage
:
build
image
:
egon0/docker-with-buildx-and-git:bash
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
tags
:
-
dind
image
:
egon0/docker-with-buildx-and-git:bash
variables
:
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
services
:
-
docker:20-dind
before_script
:
Loading