Skip to content

Commit 2d0925e

Browse files
committed
add check_tag.sh
1 parent eb6e305 commit 2d0925e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

check_tag.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/bash
2+
3+
grep __version__ "$1"
4+
5+
if [[ -n "$TRAVIS_TAG" ]]; then
6+
if ! grep $TRAVIS_TAG "$1"; then
7+
echo Tag $TRAVIS_TAG does not match setup.py version. Bail.
8+
exit 1
9+
fi
10+
fi
11+
exit 0

0 commit comments

Comments
 (0)