Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi77 committed Oct 25, 2017
1 parent 9f57c24 commit 22e833e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,29 @@ node_js: node

env:
global:
- CACHE_URL=""
- CACHE_LIB=""

matrix:
include:
- env:
- CACHE_URL="dummy://"
- CACHE_URL="dummy://"
- TEST_FILE="test/test_dummy.coffee"
- env:
- CACHE_URL="memcached://localhost:11211"
- CACHE_LIB="memcached-promisify@^2.0.0"
- TEST_FILE="test/test_memcached.coffee"
services:
- memcached
- env:
- CACHE_URL="memcached://localhost:11211"
- CACHE_LIB="memjs@^1.0.0-rc.1"
- TEST_FILE="test/test_memcached.coffee"
services:
- memcached
- env:
- CACHE_URL="redis://"
- CACHE_LIB="redis@^2.8.0"
- TEST_FILE="test/test_redis.coffee"
services:
- redis-server

Expand All @@ -32,4 +35,6 @@ before_script:
- if [ $CACHE_LIB != "" ]; then npm i $CACHE_LIB; fi

script:
- npm run coveralls
- ./node_modules/.bin/mocha --require coffeescript/register --require coffee-coverage/register-istanbul --recursive --exit $TEST_FILE
- ./node_modules/.bin/istanbul report
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls

0 comments on commit 22e833e

Please sign in to comment.