Skip to content
Snippets Groups Projects

Merge of pypi_test_deploy to dev

Closed Vincent Texier requested to merge pypi_test_deploy into dev
All threads resolved!
Files
4
+ 19
11
@@ -17,7 +17,7 @@ image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.4
GIT_STRATEGY: none
tags:
- github
script:
after_script:
- rm -rf ./*
- rm -rf .git
- git clone --mirror $CI_REPOSITORY_URL .
@@ -43,16 +43,12 @@ image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.4
changes:
- duniterpy/**/*.py
- .gitlab-ci.yml
- Makefile
- requirements_dev.txt
- requirements.txt
- setup.py
- tests/**/*.py
.release_pip: &release_pip
script:
- pip install twine
- twine upload dist/* --username duniter --password $PYPI_PASSWORD
# TASKS
format:
<<: *pyenv
@@ -82,20 +78,32 @@ check:
- make mypy
- make pylint
build: &build
build:
<<: *pyenv
<<: *changes
stage: build
script:
- pip install -r requirements.txt
- pip install wheel
- python setup.py sdist bdist_wheel
- pip install -r requirements_deploy.txt
- make build
releases:
<<: *pyenv
<<: *build
<<: *release_pip
<<: *push_to_github
stage: release
when: manual
script:
- pip install -r requirements.txt
- pip install -r requirements_deploy.txt
- make build
- make deploy PYPI_PASSWORD=$PYPI_PASSWORD
release_test:
<<: *pyenv
stage: release
when: manual
script:
- pip install -r requirements.txt
- pip install -r requirements_deploy.txt
- make build
- make deploy_test PYPI_PASSWORD=$PYPI_TEST_PASSWORD
Loading