Skip to content

Commit

Permalink
Validate that travis tag matches semver
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianvf committed Mar 10, 2020
1 parent a12fff7 commit a930885
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
include:
- stage: verify-tag
python: 3.7
script: |
[ "v$(python -c 'import kubernetes ; print(kubernetes.__version__)')" == "${TRAVIS_TAG}" ]
script: >
[ "v$(python -c 'import kubernetes ; print(kubernetes.__version__)')" == "${TRAVIS_TAG}" ] &&
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
- stage: test
python: 2.7
env: TOXENV=update-pycodestyle
Expand Down

0 comments on commit a930885

Please sign in to comment.