Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9204490

Browse files
fabianvfpalnabarun
authored andcommitted
Validate that travis tag matches semver
1 parent c702712 commit 9204490

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
@@ -13,8 +13,9 @@ jobs:
1313
include:
1414
- stage: verify-tag
1515
python: 3.7
16-
script: |
17-
[ "v$(python -c 'import kubernetes ; print(kubernetes.__version__)')" == "${TRAVIS_TAG}" ]
16+
script: >
17+
[ "v$(python -c 'import kubernetes ; print(kubernetes.__version__)')" == "${TRAVIS_TAG}" ] &&
18+
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
1819
- stage: test
1920
python: 2.7
2021
env: TOXENV=update-pycodestyle

0 commit comments

Comments
 (0)