First version of release scripts.

This commit is contained in:
antirez 2014-09-19 17:44:04 +02:00
parent 8fe3ecff09
commit 44acd50a11
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#!/bin/sh
if [ $# != "1" ]
then
echo "Usage: ${0} <git-ref>"
exit 1
fi
TAG=$1
TARNAME="redis-${TAG}.tar.gz"
DOWNLOADURL="http://download.redis.io/releases/${TARNAME}"
ssh antirez@metal "export TERM=xterm;
cd /tmp;
rm -rf test_release_tmp_dir;
cd test_release_tmp_dir;
wget $DOWNLOADURL;
tar xvzf $TARNAME;
cd redis-${TAG};
make;
./runtest;
./runtest-sentinel;
if [ -x runtest-cluster ]; then
./runtest-cluster;
fi"

View File

@ -0,0 +1,3 @@
#!/bin/bash
scp /tmp/redis-${1} antirez@antirez.com:/var/virtual/download.redis.io/httpdocs/releases/
ssh antirez@antirez.com 'cd /var/virtual/download.redis.io/httpdocs; ./update.sh ${1}'

View File

@ -0,0 +1,8 @@
#!/bin/bash
SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum | cut -f 1 -d' ')
ENTRY="hash redis-${1}.tar.gz sha1 $SHA http://download.redis.io/releases/redis-${1}.tar.gz"
echo $ENTRY >> ~/hack/redis-hashes/README
cat ~/hack/redis-hashes/README
echo "Press any key to commit, Ctrl-C to abort)."
read yes
(cd ~/hack/redis-hashes; git commit -m '${1} hash.'; git push)