Skip to content

Commit aa4d06d

Browse files
committed
Don't release if cmdline version hasn't been updated
1 parent 9d4ea13 commit aa4d06d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ script:
1919
- bash <(curl -s https://codecov.io/bash)
2020

2121
before_deploy:
22+
- >
23+
if [ ! -z ${TRAVIS_TAG} ]; then
24+
version="$(grep -E '^const version' cmd/sops/version.go | cut -d '"' -f 2)"
25+
if [ ${TRAVIS_TAG} != ${version} ]; then
26+
echo "git tag ${TRAVIS_TAG} does not map sops version ${version}"
27+
exit 1
28+
fi
29+
fi
2230
- mkdir dist
2331
- make deb-pkg rpm-pkg
2432
- mv *.deb *.rpm dist/

0 commit comments

Comments
 (0)