Skip to content
Snippets Groups Projects
Commit 00d2aece authored by inso's avatar inso
Browse files

Release gitlab

parent 9342db13
Branches
Tags
No related merge requests found
Pipeline #
...@@ -3,6 +3,7 @@ stages: ...@@ -3,6 +3,7 @@ stages:
- prepare - prepare
- build - build
- test - test
- package
variables: variables:
PYENV_PYTHON_VERSION: 3.5.5 PYENV_PYTHON_VERSION: 3.5.5
...@@ -36,7 +37,7 @@ push_to_github: ...@@ -36,7 +37,7 @@ push_to_github:
- eval "$(pyenv init -)" - eval "$(pyenv init -)"
- pyenv shell $PYENV_PYTHON_VERSION - pyenv shell $PYENV_PYTHON_VERSION
build: build: &build
<<: *pyenv <<: *pyenv
stage: build stage: build
script: script:
...@@ -51,3 +52,28 @@ test: ...@@ -51,3 +52,28 @@ test:
- pip install coveralls - pip install coveralls
- pip install -r requirements.txt - pip install -r requirements.txt
- coverage run --source=duniterpy setup.py test - coverage run --source=duniterpy setup.py test
.build_releases: &build_releases
stage: package
allow_failure: false
when: manual
artifacts:
paths: &releases_artifacts
- dist/
releases:test:
<<: *build_releases
<<: *pyenv
<<: *build
script:
- pip install -r requirements.txt
- pip install wheel
- pip install twine
- python setup.py sdist bdist_wheel
- twine upload dist/* --username duniter --password $PYPI_PASSWORD
artifacts:
paths: *releases_artifacts
expire_in: 4h
except:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment