Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Toggle --harmony flag to Node for the HARMONY environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Nov 3, 2017
1 parent a6e726a commit e9e058d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ node_js:
cache:
directories:
- ~/.npm

matrix:
include:
- node_js: 9
env: HARMONY=true
4 changes: 4 additions & 0 deletions script/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ const mochaArgs = [
"tests.mjs"
]

if (process.env.HARMONY) {
mochaArgs.push("--harmony")
}

function cleanRepo() {
return Promise.all(trashPaths.map(trash))
}
Expand Down

0 comments on commit e9e058d

Please sign in to comment.