From 9b5647fa0217607057987029c9942bf7b5763f07 Mon Sep 17 00:00:00 2001 From: bochaco Date: Wed, 3 Apr 2019 13:31:45 -0300 Subject: [PATCH] chore(travis): add Windows target to travis.yml plus minor adjustment to mocha script so it works on Windows properly --- .travis.yml | 11 ++++++++--- package.json | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d58e77c..253f040 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,13 @@ sudo: true dist: trusty -os: -- linux -- osx +matrix: + include: + - os: linux + - os: osx + - os: windows + env: + - YARN_GPG=no # otherwise this starts gpg-agent that never exits + language: node_js node_js: - '10.0.0' diff --git a/package.json b/package.json index ab21a49..4611efe 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "postinstall": "download_deps --package package.json", "docs": "rimraf docs/ && jsdoc -c jsdoc.json", "test": "cross-env NODE_ENV=test mocha --recursive", - "test-coverage": "cross-env NODE_ENV=test istanbul cover _mocha --report lcovonly -- -R spec --recursive test", + "test-coverage": "cross-env NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --timeout 5000 --report lcovonly -- -R spec --recursive test", "publish-coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "pre-pack": "npm run lint", "prepush": "npm run lint && cross-env NODE_ENV=dev npm run test",