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
Commits
75cfeec3
Commit
75cfeec3
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh]
#54
add black stage in gitlab-ci (python 3.6.4 is used only in this stage)
parent
b9f17779
No related branches found
No related tags found
No related merge requests found
Pipeline
#5772
failed
6 years ago
Stage: github-sync
Stage: black
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-7
22 additions, 7 deletions
.gitlab-ci.yml
with
22 additions
and
7 deletions
.gitlab-ci.yml
+
22
−
7
View file @
75cfeec3
stages
:
stages
:
-
github-sync
-
github-sync
-
prepare
-
prepare
-
b
uild
-
b
lack
-
test
-
test
-
build
-
release
-
release
variables
:
variables
:
...
@@ -10,6 +11,7 @@ variables:
...
@@ -10,6 +11,7 @@ variables:
image
:
registry.duniter.org/docker/python3/duniterpy-builder:0.0.4
image
:
registry.duniter.org/docker/python3/duniterpy-builder:0.0.4
# todo: remove useless github mirror as only repo is mirrored, not issues
push_to_github
:
push_to_github
:
stage
:
github-sync
stage
:
github-sync
variables
:
variables
:
...
@@ -47,14 +49,14 @@ push_to_github:
...
@@ -47,14 +49,14 @@ push_to_github:
-
setup.py
-
setup.py
-
tests/**/*.py
-
tests/**/*.py
b
uild
:
&build
b
lack
:
<<
:
*pyenv
<<
:
*pyenv
<<
:
*changes
<<
:
*changes
stage
:
b
uild
stage
:
b
lack
script
:
script
:
-
p
ip install -r requirements.txt
-
p
yenv shell 3.6.4
# black install and run needs python 3.6.x minimum
-
pip install
wheel
-
pip install
-r requirements_dev.txt
-
python setup.py sdist bdist_wheel
-
make black
test
:
test
:
<<
:
*pyenv
<<
:
*pyenv
...
@@ -71,9 +73,22 @@ check:
...
@@ -71,9 +73,22 @@ check:
stage
:
test
stage
:
test
script
:
script
:
-
pip install -r requirements.txt
-
pip install -r requirements.txt
-
pyenv shell 3.6.4
# black install needs python 3.6.x minimum
-
pip install -r requirements_dev.txt
-
pip install -r requirements_dev.txt
-
make check
-
pyenv shell $PYENV_PYTHON_VERSION
# python 3.5.x for the check
-
make mypy
-
make pylint
build
:
&build
<<
:
*pyenv
<<
:
*changes
stage
:
build
script
:
-
pip install -r requirements.txt
-
pip install wheel
-
python setup.py sdist bdist_wheel
# todo: use build anchor as build stage is repeated here
releases
:
releases
:
<<
:
*pyenv
<<
:
*pyenv
stage
:
release
stage
:
release
...
...
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