projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
806e1ea
)
checks and fixes in release.sh
v1.0.0
author
Dan Vanderkam
<danvdk@gmail.com>
Tue, 13 Aug 2013 20:18:57 +0000
(16:18 -0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Tue, 13 Aug 2013 20:18:57 +0000
(16:18 -0400)
release.sh
patch
|
blob
|
blame
|
history
diff --git
a/release.sh
b/release.sh
index
84fd072
..
dc0e81b
100755
(executable)
--- a/
release.sh
+++ b/
release.sh
@@
-20,6
+20,18
@@
if [ $branch != "release-$VERSION" ]; then
exit 1
fi
exit 1
fi
+git status | grep 'working directory clean' > /dev/null
+if [ $? -ne 0 ]; then
+ echo "Must release with a clean working directory. Commit your changes." >&2
+ exit 1
+fi
+
+make lint test test-combined
+if [ $? -ne 0 ]; then
+ echo "Tests failed. Won't release!" >&2
+ exit 1
+fi
+
# Push a permanent copy of documentation & generated files to a versioned copy
# of the site. This is where the downloadable files are generated.
# TODO(danvk): make sure this actually generates the downloadable files!
# Push a permanent copy of documentation & generated files to a versioned copy
# of the site. This is where the downloadable files are generated.
# TODO(danvk): make sure this actually generates the downloadable files!
@@
-33,7
+45,7
@@
fi
# Everything is good. Tag this release and push it.
COMMIT=$(git rev-parse HEAD)
echo "Tagging commit $COMMIT as version $VERSION"
# Everything is good. Tag this release and push it.
COMMIT=$(git rev-parse HEAD)
echo "Tagging commit $COMMIT as version $VERSION"
-git tag -m "Release of version $VERSION"
+git tag -
a "v$VERSION" -
m "Release of version $VERSION"
git push
echo "Release was successful!"
git push
echo "Release was successful!"