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