Skip to content

Commit bb12dff

Browse files
committed
travis
1 parent 6a887b1 commit bb12dff

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
sudo: false
1+
# sudo: false
22
language: node_js
33
node_js:
4-
- 5
5-
- 6
4+
- 8.16.0
5+
- 10.0.0
6+
- 12.0.0
7+
- 14.0.0
8+
script: yarn ci
9+
branches:
10+
only:
11+
- master
12+
cache:
13+
yarn: true

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
"tsnd": "node ./bin/ts-node-dev",
4141
"ts-node-dev": "node ./bin/ts-node-dev",
4242
"test": "ts-node test/index.ts",
43-
"test-node-dev": "tap test/*.js",
44-
"test-manual": "node ./bin/ts-node-dev --rt 5 --exit-child --tree-kill --clear -r tsconfig-paths/register -r ./test/ts/add-require -r ./test/ts/add-require-2 -r esm -O \"{\\\"module\\\": \\\"es6\\\"}\" --preserve-symlinks --respawn --ignore-watch 'lib' --ignore-watch bin --prefer-ts --debug --poll --interval 1000 --cache-directory .ts-node --inspect -- test/manual/test-script test-arg --fd",
45-
"test-docker": "docker run --rm -v ${PWD}:/app mhart/alpine-node:8.7.0 sh -c 'cd app && node ./bin/ts-node-dev --cache-directory .ts-node test/ts/big'"
43+
"ci": "yarn test",
44+
"manual": "node ./bin/ts-node-dev --rt 5 --exit-child --tree-kill --clear -r tsconfig-paths/register -r ./test/ts/add-require -r ./test/ts/add-require-2 -r esm -O \"{\\\"module\\\": \\\"es6\\\"}\" --preserve-symlinks --respawn --ignore-watch 'lib' --ignore-watch bin --prefer-ts --debug --poll --interval 1000 --cache-directory .ts-node --inspect -- test/manual/test-script test-arg --fd"
4645
},
4746
"dependencies": {
4847
"chokidar": "^3.4.0",

test/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,27 @@ fs.ensureDir(tempDir)
2020
fs.removeSync(path.join(tempDir, 'fixture'))
2121
fs.copySync(path.join(__dirname, 'fixture'), scriptsDir)
2222

23+
/*
24+
node ./bin/ts-node-dev --rt 5
25+
--exit-child
26+
--tree-kill
27+
--clear
28+
-r tsconfig-paths/register
29+
-r ./test/ts/add-require
30+
-r ./test/ts/add-require-2
31+
-r esm
32+
-O \"{\\\"module\\\": \\\"es6\\\"}\"
33+
--preserve-symlinks
34+
--respawn --ignore-watch 'lib'
35+
--ignore-watch bin --prefer-ts
36+
--debug
37+
--poll
38+
--interval 1000
39+
--cache-directory .ts-node
40+
--inspect
41+
-- test/manual/test-script test-arg --fd
42+
*/
43+
2344
test('It should restart on file change', (t) => {
2445
const ps = spawnTsNodeDev('--respawn simple.ts', (res) => {
2546
if (/v1/.test(res)) {

0 commit comments

Comments
 (0)