Skip to content

Commit

Permalink
Build: Add node 12/14 & set maxVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 3, 2020
1 parent d0f9a8e commit 8eea01f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
sudo: false
language: node_js
node_js:
- '14'
- '12'
- '10'
- '8'
- '6'
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ environment:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "12"
- nodejs_version: "14"

install:
- ps: Install-Product node $env:nodejs_version
Expand Down
12 changes: 12 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ var minVersions = {
'toml-require': { major: 6, minor: 0 },
};

var maxVersions = {
'typescript-require': { major: 10, minor: 0 },
};

describe('interpret.extensions', function() {

beforeEach(cleanup);
Expand Down Expand Up @@ -123,6 +127,14 @@ describe('interpret.extensions', function() {
}
}

var maxVersion = maxVersions[module];

if (maxVersion) {
if (nodeVersion.major > maxVersion.major) {
this.skip();
}
}

this.timeout(0);

var expected;
Expand Down

0 comments on commit 8eea01f

Please sign in to comment.