forked from datastax/nodejs-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (44 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: node_js
dist: jammy
sudo: false
cache:
directories:
- node_modules
jobs:
include:
- stage: "tests"
name: "Run eslint"
script: "npm install -g eslint@4; npm run eslint;"
node_js: "18"
- name: "TypeScript 4.9 generation and compilation tests"
node_js: "18"
script:
- npm install -g [email protected];
- pushd test/unit/typescript/
- tsc -p .
- node -e "require('./api-generation-test').generate()" > generated.ts
- tsc generated.ts
- name: "Unit tests - Node.js 20"
node_js: "20"
script: "npm test"
- name: "Unit tests w/ latest dependencies - Node.js 20"
node_js: "20"
script:
- rm package-lock.json
- rm -rf node_modules
- npm install
- npm test
- name: "Unit tests - Node.js 18"
node_js: "18"
script: "npm test"
- name: "Unit tests - Node.js 16"
node_js: "16"
script: "npm test"
- name: "TypeScript (latest) generation and compilation tests"
node_js: "18"
script:
- npm install -g typescript;
- pushd test/unit/typescript/
- tsc -p .
- node -e "require('./api-generation-test').generate()" > generated.ts
- tsc generated.ts