From 5cf134d49af6a656bf82c82a4700e3d03b409220 Mon Sep 17 00:00:00 2001 From: Jordan Klassen Date: Mon, 2 May 2016 14:15:04 -0700 Subject: [PATCH] Test 0.10 and 0.12 in travis --- .travis.yml | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f308e8..a00fbac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: node_js node_js: + - "0.10" + - "0.12" - "4" - "5" - "6" diff --git a/package.json b/package.json index e849381..d32d69e 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "build": "rm -r es5 > /dev/null; babel ./*.js -d es5", "prepublish": "npm run build", "lint": "eslint *.js", - "mocha": "mocha *.test.js es5/*.test.js", - "test": "npm run lint && npm run mocha" + "mocha": "[ `echo $npm_config_node_version | cut -d. -f1` -eq 0 ] && mocha es5/*.test.js || mocha *.test.js", + "test": "npm run lint && npm run build && npm run mocha" }, "repository": { "type": "git",