Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
clients
python
DuniterPy
Merge requests
!95
"git@git.duniter.org:clients/gecko.git" did not exist on "c5317f984d57f9776bb1a38e60dd8e31efdd2ce6"
#118
: Set up complete CI/CD pipeline
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#118
: Set up complete CI/CD pipeline
118_enh_ci
into
dev
Overview
1
Commits
7
Pipelines
90
Changes
1
Merged
Moul
requested to merge
118_enh_ci
into
dev
5 years ago
Overview
1
Commits
7
Pipelines
90
Changes
1
Expand
Close
#118 (closed)
.
Edited
4 years ago
by
Moul
0
0
Merge request reports
Compare
dev
version 43
f33a2c1a
4 years ago
version 42
25efadbe
4 years ago
version 41
907e7528
4 years ago
version 40
3a7ddb44
4 years ago
version 39
999bcec2
4 years ago
version 38
e48d59dc
4 years ago
version 37
d5e812ee
4 years ago
version 36
7b13e9b6
4 years ago
version 35
65e6220d
4 years ago
version 34
ad142fee
4 years ago
version 33
88c43ce0
4 years ago
version 32
88c43ce0
4 years ago
version 31
a914eac4
4 years ago
version 30
37226f4c
4 years ago
version 29
34f585d8
4 years ago
version 28
f115083e
4 years ago
version 27
ce39bea6
4 years ago
version 26
8380d0c0
4 years ago
version 25
a479efa8
4 years ago
version 24
2d22f8a6
4 years ago
version 23
9bc2a77f
4 years ago
version 22
60788be9
4 years ago
version 21
88d96392
4 years ago
version 20
b5507335
4 years ago
version 19
df6bc10b
4 years ago
version 18
ff06ae7e
4 years ago
version 17
67c27ade
4 years ago
version 16
4e994992
4 years ago
version 15
4e994992
4 years ago
version 14
4e994992
5 years ago
version 13
4e994992
5 years ago
version 12
4e994992
5 years ago
version 11
4e994992
5 years ago
version 10
4e994992
5 years ago
version 9
4e994992
5 years ago
version 8
4e994992
5 years ago
version 7
90d428eb
5 years ago
version 6
c3130509
5 years ago
version 5
c3130509
5 years ago
version 4
1bcd1b4c
5 years ago
version 3
cb72b6b0
5 years ago
version 2
f8ed606f
5 years ago
version 1
df6a9810
5 years ago
dev (base)
and
latest version
latest version
05db60c4
7 commits,
4 years ago
version 43
f33a2c1a
7 commits,
4 years ago
version 42
25efadbe
7 commits,
4 years ago
version 41
907e7528
7 commits,
4 years ago
version 40
3a7ddb44
11 commits,
4 years ago
version 39
999bcec2
10 commits,
4 years ago
version 38
e48d59dc
10 commits,
4 years ago
version 37
d5e812ee
10 commits,
4 years ago
version 36
7b13e9b6
9 commits,
4 years ago
version 35
65e6220d
13 commits,
4 years ago
version 34
ad142fee
14 commits,
4 years ago
version 33
88c43ce0
13 commits,
4 years ago
version 32
88c43ce0
14 commits,
4 years ago
version 31
a914eac4
13 commits,
4 years ago
version 30
37226f4c
14 commits,
4 years ago
version 29
34f585d8
13 commits,
4 years ago
version 28
f115083e
12 commits,
4 years ago
version 27
ce39bea6
12 commits,
4 years ago
version 26
8380d0c0
16 commits,
4 years ago
version 25
a479efa8
16 commits,
4 years ago
version 24
2d22f8a6
15 commits,
4 years ago
version 23
9bc2a77f
15 commits,
4 years ago
version 22
60788be9
15 commits,
4 years ago
version 21
88d96392
15 commits,
4 years ago
version 20
b5507335
14 commits,
4 years ago
version 19
df6bc10b
11 commits,
4 years ago
version 18
ff06ae7e
10 commits,
4 years ago
version 17
67c27ade
10 commits,
4 years ago
version 16
4e994992
11 commits,
4 years ago
version 15
4e994992
11 commits,
4 years ago
version 14
4e994992
11 commits,
5 years ago
version 13
4e994992
11 commits,
5 years ago
version 12
4e994992
11 commits,
5 years ago
version 11
4e994992
11 commits,
5 years ago
version 10
4e994992
11 commits,
5 years ago
version 9
4e994992
11 commits,
5 years ago
version 8
4e994992
11 commits,
5 years ago
version 7
90d428eb
10 commits,
5 years ago
version 6
c3130509
10 commits,
5 years ago
version 5
c3130509
10 commits,
5 years ago
version 4
1bcd1b4c
8 commits,
5 years ago
version 3
cb72b6b0
8 commits,
5 years ago
version 2
f8ed606f
8 commits,
5 years ago
version 1
df6a9810
7 commits,
5 years ago
1 file
+
56
−
44
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
56
−
44
Options
stages
:
-
format
-
test
-
build
-
checks
-
tests
-
release
-
publish_doc
variables
:
DOCKER_IMAGE
:
"
registry.duniter.org/docker/python3/poetry"
PYTHON_VERSION
:
"
3.
6
"
PYTHON_VERSION
:
"
3.
8
"
image
:
$DOCKER_IMAGE/$PYTHON_VERSION:latest
# SUB-TASKS
.push_to_github
:
tags
:
-
github
after_script
:
# remove all files in current repo
-
rm -rf ./*
-
rm -rf .git*
# do a mirror clone in current repo
-
git clone --mirror $CI_REPOSITORY_URL .
# do config for github push
-
git remote add github $GITHUB_URL_AND_KEY
-
git config --global user.email "contact@duniter.org"
-
git config --global user.name "Duniter"
# remove refs about merge requests
-
bash -c "cat packed-refs | grep -v 'refs/merge-requests' > packed-refs-new; echo 'Removed merge-requests refs.'"
-
mv packed-refs-new packed-refs
# github push
-
bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
.code_changes
:
only
:
changes
:
-
duniterpy/**/*.py
-
tests/**/*.py
-
examples/*.py
.changes
:
rules
:
-
changes
:
-
duniterpy/**/*.py
-
tests/**/*.py
-
examples/*.py
-
.gitlab-ci.yml
-
Makefile
-
tests/**/*.py
-
pyproject.toml
# TASKS
format
:
extends
:
-
.changes
stage
:
format
image
:
$DOCKER_IMAGE/3.8:latest
-
.code_changes
stage
:
checks
script
:
-
make check-format
test
:
build
:
extends
:
-
.changes
stage
:
test
stage
:
checks
script
:
-
poetry install --no-dev
-
make tests
-
poetry build
check
:
type
:
extends
:
-
.changes
stage
:
test
-
.
code_
changes
stage
:
checks
script
:
-
poetry install
-
make mypy
-
make pylint
build
:
lint
:
extends
:
-
.changes
stage
:
build
-
.code_changes
stage
:
tests
tags
:
[
redshift
]
script
:
-
poetry build
-
poetry install
-
make pylint
.tests
:
extends
:
.changes
stage
:
tests
image
:
$DOCKER_IMAGE/$PYTHON_VERSION:latest
script
:
-
poetry install --no-dev
-
make tests
tests-3.6
:
extends
:
.tests
tags
:
[
mille
]
variables
:
PYTHON_VERSION
:
"
3.6"
tests-3.7
:
extends
:
.tests
tags
:
[
mille
]
variables
:
PYTHON_VERSION
:
"
3.7"
tests-3.8
:
extends
:
.tests
tags
:
[
redshift
]
tests-3.9
:
extends
:
.tests
tags
:
[
redshift
]
variables
:
PYTHON_VERSION
:
"
3.9"
release
:
extends
:
-
.push_to_github
stage
:
release
script
:
-
poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
@@ -102,7 +114,7 @@ pages:
stage
:
publish_doc
script
:
-
poetry install
-
poetry run
make docs
-
make docs
-
mv docs/_build/html public
-
ls public
artifacts
:
Loading