Skip to content
Snippets Groups Projects

Merge of pypi_test_deploy_3 to dev

Merged Vincent Texier requested to merge pypi_test_deploy_3 into dev
Files
4
+ 20
13
@@ -12,12 +12,11 @@ image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.4
# SUB-TASKS
.push_to_github: &push_to_github
stage: github-sync
variables:
GIT_STRATEGY: none
tags:
- github
script:
after_script:
- rm -rf ./*
- rm -rf .git
- git clone --mirror $CI_REPOSITORY_URL .
@@ -43,16 +42,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 +77,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:
release:
<<: *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_LOGIN=${PYPI_LOGIN} 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_TEST_LOGIN=${PYPI_TEST_LOGIN} PYPI_TEST_PASSWORD=${PYPI_TEST_PASSWORD}
Loading