mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 19:12:14 +00:00
First version of release scripts.
This commit is contained in:
parent
8fe3ecff09
commit
44acd50a11
24
utils/releasetools/00_test_release.sh
Executable file
24
utils/releasetools/00_test_release.sh
Executable 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"
|
3
utils/releasetools/02_upload_tarball.sh
Executable file
3
utils/releasetools/02_upload_tarball.sh
Executable 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}'
|
8
utils/releasetools/03_release_hash.sh
Executable file
8
utils/releasetools/03_release_hash.sh
Executable 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)
|
Loading…
x
Reference in New Issue
Block a user