Skip to content

Commit 108646e

Browse files
committed
travis: run sudo tests
1 parent 2a78b96 commit 108646e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sudo: false
1+
sudo: true
22
# need to declare the language as well as the matrix below
33
language: node_js
44
# having top-level `env:` adds a phantom build
@@ -12,7 +12,8 @@ matrix:
1212
# only gather coverage info for LTS
1313
env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN"
1414
script:
15-
- "node . run tap-cover -- \"test/tap/*.js\""
15+
# run the sudo tests, with coverage enabled
16+
- "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage"
1617
- "unset COVERALLS_REPO_TOKEN ; node . run tap -- \"test/broken-under-*/*.js\""
1718
# previous LTS is next most important
1819
- node_js: "10"

0 commit comments

Comments
 (0)