Skip to content
This repository
tree: 6fe7cdff9f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 38 lines (28 sloc) 0.86 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#!/usr/bin/env bash

# This is intended for use as part of a Travis CI build, for projects
# that use Qless. Qless needs redis 2.6 (which has RC release but no
# final yet), and Travis has 2.4 installed. This will install and
# start 2.6 as a daemon.
#
# In your .travis.yml, add:
# before_install:
# - curl -s https://raw.github.com/seomoz/qless-core/master/scripts/install_and_run_redis_2_6 | sh

# kill the script on error
set -e

REDIS_VERSION=2.6.0-rc6

# shutdown the 2.4 server
sudo service redis-server stop

# download
wget http://redis.googlecode.com/files/redis-$REDIS_VERSION.tar.gz

# extract
tar xzf redis-$REDIS_VERSION.tar.gz

# make
cd redis-$REDIS_VERSION
make
sudo make install

# daemonize!
echo "daemonize yes" > redis.conf

# start the 2.6 server
redis-server redis.conf

# Verify that 2.6 is running
redis-cli info | grep redis_version
Something went wrong with that request. Please try again.