From 6762d56110fabff8b01f0ba8a44143aa58eac652 Mon Sep 17 00:00:00 2001 From: Bryan Madsen Date: Thu, 16 Jan 2014 12:39:18 -0700 Subject: [PATCH] spec: enable redis on travis Change-Id: If25a8372575241a1196bf426b7165bc120fa270a Reviewed-on: https://gerrit.instructure.com/28712 Reviewed-by: Brian Palmer Product-Review: Bryan Madsen QA-Review: Bryan Madsen Tested-by: Jenkins --- .travis.yml | 2 ++ config/cache_store.yml.example | 2 ++ config/redis.yml.example | 16 ++++++++-------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index fcbdeea2691..7d071ef53b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ rvm: - "1.9.3" +services: + - redis-server before_script: - find ./config -depth -name "*.yml.example" -exec sh -c 'cp "$1" "${1%.yml.example}.yml"' _ {} \; - psql -c 'create database myapp_test;' -U postgres; cp ./config/database.yml.travis ./config/database.yml diff --git a/config/cache_store.yml.example b/config/cache_store.yml.example index 2b297192533..5588d10b218 100644 --- a/config/cache_store.yml.example +++ b/config/cache_store.yml.example @@ -1,3 +1,5 @@ +test: + cache_store: redis_store development: # cache_store: redis_store # diff --git a/config/redis.yml.example b/config/redis.yml.example index 46ede046d8d..3586281317b 100644 --- a/config/redis.yml.example +++ b/config/redis.yml.example @@ -11,11 +11,11 @@ # - redis://redis01 # - redis://redis02 -# test: -# # only tests that are exercising the integration with redis require redis to run. -# servers: -# - redis://localhost -# # warning: the redis database will get cleared before each test, so if you -# # use this server for anything else, make sure to set aside a database id for -# # these tests to use. -# database: 1 +test: + # only tests that are exercising the integration with redis require redis to run. + servers: + - redis://localhost + # warning: the redis database will get cleared before each test, so if you + # use this server for anything else, make sure to set aside a database id for + # these tests to use. + database: 1