Validate that travis tag matches semver

This commit is contained in:
Fabian von Feilitzsch 2020-03-10 13:05:15 -04:00
parent a12fff7ff3
commit a930885aaf

View File

@ -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