diff --git a/.travis.yml b/.travis.yml index e128008..64dde33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,9 @@ cache: - node_modules before_script: + - if [[ $TRAVIS_NODE_VERSION == "6" ]]; then export LAB_FLAGS="--leaks"; else export LAB_FLAGS=""; fi - npm install seneca$SENECA_VER + - echo FLAGS:$LAB_FLAGS after_script: npm run coverage diff --git a/package.json b/package.json index c1cbcd4..7c2914f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "license": "MIT", "main": "user.js", "scripts": { - "test": "lab -P test -r console -v -m 3000 -t 76", + "test": "lab -P test -r console -v -m 3000 -t 76 $LAB_FLAGS", + "test:node6": "LAB_FLAGS='--leaks' && npm test", "lint": "lab -dL", "coverage": "lab -s -P test -r lcov | coveralls", "annotate": "docco user.js -o doc"