Skip to content

Commit

Permalink
chore: run semrel only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Votradovec committed Oct 19, 2022
1 parent a98cd5a commit 3b9392a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ conditions: v1
stages:
- name: test
- name: deploy
if: tag IS present
if: branch = main AND type = push

sudo: required
dist: xenial
Expand Down Expand Up @@ -41,6 +41,13 @@ jobs:
env: TOXENV=py37 TOXCFG=tox.ini
stage: test

- stage: deploy
script:
- git config --global user.name "semantic-release (via TravisCI)"
- git config --global user.email "semantic-release@travis"
- pip install python-semantic-release
- semantic-release publish


# Hotfix: setuptools is capped at version 59, as newer versions seem to have issues with importlib_metadata in python 3.7.
# See e.g. https://app.travis-ci.com/github/rossumai/rossum/jobs/560023987
Expand All @@ -51,9 +58,3 @@ install:
# command to run tests
script:
- tox -c ${TOXCFG}

after_success:
- git config --global user.name "semantic-release (via TravisCI)"
- git config --global user.email "semantic-release@travis"
- pip install python-semantic-release
- semantic-release publish

0 comments on commit 3b9392a

Please sign in to comment.