Skip to content

Commit 8e3fe92

Browse files
authored
NODEJS-657 Update Travis configs to use more modern versions of node.js (#408)
1 parent 46555cb commit 8e3fe92

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.travis.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
2+
dist: jammy
23
sudo: false
34
cache:
45
directories:
@@ -9,33 +10,33 @@ jobs:
910
- stage: "tests"
1011
name: "Run eslint"
1112
script: "npm install -g eslint@4; npm run eslint;"
12-
node_js: "10"
13-
- name: "TypeScript 2.9 generation and compilation tests"
14-
node_js: "10"
13+
node_js: "18"
14+
- name: "TypeScript 4.9 generation and compilation tests"
15+
node_js: "18"
1516
script:
16-
- npm install -g typescript@2.9;
17+
- npm install -g typescript@4.9;
1718
- pushd test/unit/typescript/
1819
- tsc -p .
1920
- node -e "require('./api-generation-test').generate()" > generated.ts
2021
- tsc generated.ts
21-
- name: "Unit tests - Node.js 12"
22-
node_js: "12"
22+
- name: "Unit tests - Node.js 20"
23+
node_js: "20"
2324
script: "npm test"
24-
- name: "Unit tests w/ latest dependencies - Node.js 12"
25-
node_js: "12"
25+
- name: "Unit tests w/ latest dependencies - Node.js 20"
26+
node_js: "20"
2627
script:
2728
- rm package-lock.json
2829
- rm -rf node_modules
2930
- npm install
3031
- npm test
31-
- name: "Unit tests - Node.js 10"
32-
node_js: "10"
32+
- name: "Unit tests - Node.js 18"
33+
node_js: "18"
3334
script: "npm test"
34-
- name: "Unit tests - Node.js 8"
35-
node_js: "8"
35+
- name: "Unit tests - Node.js 16"
36+
node_js: "16"
3637
script: "npm test"
3738
- name: "TypeScript (latest) generation and compilation tests"
38-
node_js: "10"
39+
node_js: "18"
3940
script:
4041
- npm install -g typescript;
4142
- pushd test/unit/typescript/

0 commit comments

Comments
 (0)