Skip to content

Commit 31fb715

Browse files
fabianvfpalnabarun
authored andcommitted
Validate that travis tag matches semver
1 parent b54f1bf commit 31fb715

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
include:
1515
- stage: verify-tag
1616
python: 3.7
17-
script: |
18-
[ "v$(python -c 'import kubernetes ; print(kubernetes.__version__)')" == "${TRAVIS_TAG}" ]
17+
script: >
18+
[ "v$(python -c 'import kubernetes ; print(kubernetes.__version__)')" == "${TRAVIS_TAG}" ] &&
19+
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
1920
- stage: test
2021
python: 2.7
2122
env: TOXENV=update-pycodestyle

0 commit comments

Comments
 (0)