Tests using a specified redis socket instead of default host / port, and fixes #68
Switch to updated openresty package 1.2.8.3-1

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Merge branch 'iss68' of github.com:pintsized/ledge into travis
Change test process to spawn redis processes manually
 - Remove service start for redis in .travis.yml
 - Start redis-server with custom config in Makefile

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Make sure redis-server is stopped before testing

Reindent makefile
Add unix:// to socket path

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Auto-spawn redis processes and run tests

Switch to using bash for required shell syntax
Make sure we exit using the correct status from travis

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Add cleanup targets for redis, finalise make test

Additional reformatting for line width

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Allow TEST_LEDGE_REDIS_SOCKET to be overridden

Add test_all target to handle all testing / redis setup and teardown
Make sure variable quoting in commands is consistent

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Install Test::Nginx from git repo (for on_abort testing #67)

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Attempt to use full path for Test::Nginx from git

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Revert "Install Test::Nginx from git repo (for on_abort testing #67)"

This reverts commit 16cf72135d057f3800bfb61c31edbdf67a367063.

We should resolve this by getting the cpan package updated rather than screwing about with the git version :)

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>

Conflicts:
	.travis.yml
Merge pull request #73 from benagricola/travis

Modified test framework for sentinel & travis updates
Fix for overlooked .PHONY entries

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Merge pull request #74 from benagricola/travis

Fix for overlooked .PHONY entries
Not sure if this is working
This wasn't supposed to be here.
Merge branch 'master' into iss68
Set PATH and TEST_NGINX_BINARY explicitly for travis

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>
Merge pull request #80 from benagricola/iss68

Fixing openresty path issues with travis
Support for serving stale content if the origin errors.
Ledge will now obey stale-if-error=1234 in cache-control headers.
Adds "stale_if_error" config option which will override the stale-if-error cache-control directive.