Skip to content

Commit

Permalink
build(ci/cd): automate releases (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Kanitz <alexander.kanitz@unibas.ch>
  • Loading branch information
stikos and uniqueg committed Feb 21, 2021
1 parent fb62b36 commit 8de7222
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ jobs:
- docker push "${DOCKER_REPO_NAME}:${DOCKER_TAG}"
- if [ "$TRAVIS_BRANCH" = "dev" ]; then docker push "${DOCKER_REPO_NAME}:latest"; fi
- rm ${HOME}/.docker/config.json # delete token

after_success:
- git config --global user.name "semantic-release (via TravisCI)"
- git config --global user.email "semantic-release@travis"
- pip install python-semantic-release==7.15.0
- semantic-release publish -v DEBUG
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ PyJWT==1.7.1
pylint==2.5.3
pymongo==3.10.1
pytest==5.4.3
python-semantic-release==7.2.1
PyYAML==5.3.1
requests==2.23.0
swagger-ui-bundle==0.0.6
Expand Down
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ exclude = .git,venv,env
max-line-length = 79

[semantic_release]
; documentation: https://python-semantic-release.readthedocs.io/en/latest/configuration.html
branch = master
changelog_components = semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url
check_build_status = false
major_on_zero = true
repository = pypi
upload_to_pypi = true
upload_to_release = true
version_variable = foca/__init__.py:__version__

0 comments on commit 8de7222

Please sign in to comment.