From c655c1e89366d2951d6bf8ba562575a0b0b8cd0d Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Thu, 28 May 2020 16:18:09 -0700 Subject: [PATCH] try to fix smoke test in node 10 Signed-off-by: Christopher Hiller --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd0cfd348d..edccec0cff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,16 +75,15 @@ jobs: stage: smoke env: null before_install: true - install: true - name: 'Latest Node.js' - script: | + install: | TARBALL=$(npm pack) && \ mkdir -p /tmp/mocha-smoke && \ - cp -r test/smoke /tmp/mocha-smoke/test && \ + cp -r test/smoke /tmp/mocha-smoke && \ mv $TARBALL /tmp/mocha-smoke && \ cd /tmp/mocha-smoke && \ - npm install $TARBALL && \ - node_modules/.bin/mocha + npm install $TARBALL + name: 'Latest Node.js' + script: 'node_modules/.bin/mocha' - <<: *smoke node_js: '12' @@ -93,6 +92,7 @@ jobs: - <<: *smoke node_js: '10' name: 'Node.js v10' + script: 'node_modules/.bin/mocha "test/*.js"' - stage: precache script: true