Remove release.sh, which is now out of date
authorLuke Morris <lukevmorris@gmail.com>
Tue, 12 Dec 2017 18:46:32 +0000 (10:46 -0800)
committerLuke Morris <lukevmorris@gmail.com>
Tue, 12 Dec 2017 18:46:32 +0000 (10:46 -0800)
scripts/release.sh [deleted file]

diff --git a/scripts/release.sh b/scripts/release.sh
deleted file mode 100755 (executable)
index 34a0fd1..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-# This script "releases" a version of dygraphs.
-
-if [ $# -ne 1 ]; then
-  echo "Usage: $0 X.Y.Z" >&2
-  exit 1
-fi
-
-VERSION=$1
-echo $VERSION | egrep '\d+\.\d+\.\d+' > /dev/null
-if [ $? -ne 0 ]; then
-  echo "Version must be of the form 1.2.3 (got '$VERSION')" >&2
-  exit 1
-fi
-
-# Make sure this is being run from a release branch with the correct name.
-branch=$(git rev-parse --abbrev-ref HEAD)
-if [ $branch != "release-$VERSION" ]; then
-  echo "Must be on a branch named 'release-$VERSION' (found '$branch')" >&2
-  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
-
-grep "$VERSION" package.json
-if [ $? -ne 0 ]; then
-  echo "Version in package.json doesn't match command line argument." >&2
-  exit 1
-fi
-
-grep "$VERSION" releases.json
-if [ $? -ne 0 ]; then
-  echo "Version $VERSION does not appear in releases.json." >&2
-  exit 1
-fi
-
-set -o errexit
-npm run build
-npm run test
-set +o errexit
-
-# 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!
-echo "Pushing docs and generated files to dygraphs.com/$VERSION"
-./push-to-web.sh dygraphs.com:dygraphs.com/$VERSION
-if [ $? -ne 0 ]; then
-  echo "Push to web failed" >&2
-  exit 1
-fi
-
-set -o errexit
-
-COMMIT=$(git rev-parse HEAD)
-echo "Tagging commit $COMMIT as version $VERSION"
-git tag -a "v$VERSION" -m "Release of version $VERSION"
-git push --tags
-
-echo "Release was successful!"
-echo "Pushing the new version to dygraphs.com..."
-./push-to-web.sh dygraphs.com:dygraphs.com
-
-echo "Success!\n"
-
-# Discourage users from working on the "releases" branch.
-git checkout master