From f43a03a151c0219a40b9cd3e382ff8dcb6b5a976 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 22 Oct 2017 18:17:31 -0400 Subject: [PATCH] Using matrix include and fix test bug. --- .travis.yml | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 106e54b90..399e84e17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,12 @@ env: before_script: - "pushd tests && npm install && popd" + +matrix: + include: + - node_js: "6" + env: RUN_PHANTOMJS=0 + - node_js: "6" + env: RUN_PHANTOMJS=1 + - node_js: "8" + env: RUN_PHANTOMJS=0 diff --git a/package.json b/package.json index f4ab2d99c..b33fff8ed 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Ethereum wallet library.", "main": "index.js", "scripts": { - "test": "if [ \"$RUN_PHANTOMJS\" == \"1\" ]; then npm run-script test-phantomjs; else npm run-script test-node; fi", + "test": "if [ \"$RUN_PHANTOMJS\" = \"1\" ]; then npm run-script test-phantomjs; else npm run-script test-node; fi", "test-node": "./node_modules/.bin/mocha tests/test-*.js", "test-phantomjs": "./node_modules/.bin/grunt --gruntfile tests/Gruntfile.js dist && phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js ./tests/test.html", "version": "grunt dist"