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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
d1f8a4a6
Commit
d1f8a4a6
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh]
#54
improve gitlab ci (github after release, build used by release)
parent
bd1e0a7b
No related branches found
No related tags found
1 merge request
!63
Black
Pipeline
#5776
passed
6 years ago
Stage: black
Stage: test
Stage: build
Stage: release
Stage: github-sync
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-6
2 additions, 6 deletions
.gitlab-ci.yml
with
2 additions
and
6 deletions
.gitlab-ci.yml
+
2
−
6
View file @
d1f8a4a6
stages
:
stages
:
-
github-sync
-
prepare
-
prepare
-
black
-
black
-
test
-
test
-
build
-
build
-
release
-
release
-
github-sync
variables
:
variables
:
PYENV_PYTHON_VERSION
:
3.5.5
PYENV_PYTHON_VERSION
:
3.5.5
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
:
...
@@ -87,15 +86,12 @@ build: &build
...
@@ -87,15 +86,12 @@ build: &build
-
pip install wheel
-
pip install wheel
-
python setup.py sdist bdist_wheel
-
python setup.py sdist bdist_wheel
# todo: use build anchor as build stage is repeated here
releases
:
releases
:
<<
:
*pyenv
<<
:
*pyenv
<<
:
*build
stage
:
release
stage
:
release
when
:
manual
when
:
manual
script
:
script
:
-
pip install -r requirements.txt
-
pip install wheel
-
pip install twine
-
pip install twine
-
python setup.py sdist bdist_wheel
-
twine upload dist/* --username duniter --password $PYPI_PASSWORD
-
twine upload dist/* --username duniter --password $PYPI_PASSWORD
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