projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c35c2b2
)
check for correct versions in package.json and bower.json
author
Dan Vanderkam
<danvdk@gmail.com>
Tue, 21 Oct 2014 04:49:37 +0000
(
00:49
-0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Wed, 22 Oct 2014 02:31:07 +0000
(22:31 -0400)
release.sh
patch
|
blob
|
blame
|
history
diff --git
a/release.sh
b/release.sh
index
01089e4
..
909e109
100755
(executable)
--- a/
release.sh
+++ b/
release.sh
@@
-26,6
+26,18
@@
if [ $? -ne 0 ]; then
exit 1
fi
+grep "$VERSION" package.json
+if [ $? -ne 0 ]; then
+ echo "Version in package.json doesn't match command line argument." >&2
+ exit 1
+fi
+
+grep "v$VERSION" bower.json
+if [ $? -ne 0 ]; then
+ echo "Version in bower.json doesn't match command line argument." >&2
+ exit 1
+fi
+
make lint test test-combined
if [ $? -ne 0 ]; then
echo "Tests failed. Won't release!" >&2