From ada007125fa062f902c5c06eba34acc35c8cf1bd Mon Sep 17 00:00:00 2001 From: Masafumi Koba Date: Thu, 21 Mar 2019 15:08:42 +0900 Subject: [PATCH] ci(travis): fix failed test for Node 4 See [build log](https://travis-ci.org/npm/hosted-git-info/jobs/509276436). By using `--no-esm` option of `tap` (see https://www.node-tap.org/cli/). --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 012ca437..496ca8e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,9 @@ node_js: - "8" - "6" - "4" +script: | + if [ $TRAVIS_NODE_VERSION == "4" ]; then + ./node_modules/.bin/tap --no-esm test; + else + npm test; + fi