From 38da695f7ef53ba21745d6f018031f8e21216094 Mon Sep 17 00:00:00 2001 From: Damien SAILLARD Date: Tue, 1 Oct 2013 10:30:27 +0200 Subject: [PATCH] install mocha in travis to avoid pb when functional testing. #21 --- .travis.yml | 4 ++++ makefile | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index dc97701..5815577 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: node_js node_js: - "0.8" + +before_script: + - npm install --quiet -g mocha + services: - mongodb diff --git a/makefile b/makefile index 12944f7..46c38f2 100644 --- a/makefile +++ b/makefile @@ -2,10 +2,10 @@ REPORTER = dot check: test -test: test-unit +test: test-unit test-functional test-unit: - @NODE_ENV=test ./node_modules/.bin/mocha \ + @NODE_ENV=test mocha \ --compilers coffee:coffee-script \ --recursive \ --reporter $(REPORTER) \ @@ -20,7 +20,7 @@ test-functional: test/functional test-unit-report: - @NODE_ENV=test ./node_modules/.bin/mocha \ + @NODE_ENV=test mocha \ --compilers coffee:coffee-script \ --recursive \ --reporter markdown \