Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build against multiple redis versions. #68

Merged
merged 3 commits into from
Mar 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
sudo: false
services:
- redis-server
language: python
python:
- 2.6
- 2.7
- pypy
install:
- make redis
- pip install redis --use-mirrors
script: make test
env:
- REDIS_VERSION=3.0.7
- REDIS_VERSION=3.2.8
matrix:
allow_failures:
- env: REDIS_VERSION=3.2.8
script: make test
21 changes: 19 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,26 @@ qless.lua: qless-lib.lua api.lua
egrep -v '^[[:space:]]*--[^\[]' | \
egrep -v '^--$$' >> qless.lua

REDIS_VERSION ?= stable
REDIS_DIR = redis-$(REDIS_VERSION)
REDIS_TAR = redis-$(REDIS_VERSION).tar.gz
REDIS_BIN = $(REDIS_DIR)/src/redis-server

.PHONY: clean test redis
clean:
rm -f qless.lua qless-lib.lua
rm -rf qless.lua qless-lib.lua $(REDIS_TAR) $(REDIS_DIR)

.PHONY: test
test: qless.lua *.lua
nosetests --exe -v

$(REDIS_TAR):
curl -O http://download.redis.io/releases/$(REDIS_TAR)

$(REDIS_DIR): $(REDIS_TAR)
tar xvf $(REDIS_TAR)

$(REDIS_BIN): $(REDIS_DIR)
cd $(REDIS_DIR) && make

redis: $(REDIS_BIN)
$(REDIS_BIN) --daemonize yes