Skip to content

Commit

Permalink
Don't release if cmdline version hasn't been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jvehent committed Jan 19, 2018
1 parent 9d4ea13 commit aa4d06d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ script:
- bash <(curl -s https://codecov.io/bash)

before_deploy:
- >
if [ ! -z ${TRAVIS_TAG} ]; then
version="$(grep -E '^const version' cmd/sops/version.go | cut -d '"' -f 2)"
if [ ${TRAVIS_TAG} != ${version} ]; then
echo "git tag ${TRAVIS_TAG} does not map sops version ${version}"
exit 1
fi
fi
- mkdir dist
- make deb-pkg rpm-pkg
- mv *.deb *.rpm dist/
Expand Down

0 comments on commit aa4d06d

Please sign in to comment.