From 108646ebc12f3eeebaa0a45884c45991a45e57e4 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 16 Jul 2019 11:06:30 -0700 Subject: [PATCH] travis: run sudo tests --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 07bae65e6640f..ef949a0d454d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +sudo: true # need to declare the language as well as the matrix below language: node_js # having top-level `env:` adds a phantom build @@ -12,7 +12,8 @@ matrix: # only gather coverage info for LTS env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN" script: - - "node . run tap-cover -- \"test/tap/*.js\"" + # run the sudo tests, with coverage enabled + - "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage" - "unset COVERALLS_REPO_TOKEN ; node . run tap -- \"test/broken-under-*/*.js\"" # previous LTS is next most important - node_js: "10"