-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
37 lines (30 loc) · 921 Bytes
/
.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
language: node_js
node_js:
- 6
- stable
before_install:
- >
if [ "$TRAVIS_NODE_VERSION" = "6" ]; then
yarn upgrade [email protected]
fi
script:
- yarn run lint
- yarn run build
- yarn run test
- > # yarn and tslint-test do not work on node 4
if [ "$TRAVIS_NODE_VERSION" = "6" ]; then
echo '{ "presets": [["@babel/preset-env", { "targets": { "node": "4" } }]] }' > .babelrc.test.json
npm install @babel/cli @babel/core @babel/preset-env
node_modules/.bin/babel node_modules/@babel/code-frame/lib --out-dir node_modules/@babel/code-frame/lib --config-file ./.babelrc.test.json
node_modules/.bin/babel node_modules/@babel/highlight/lib --out-dir node_modules/@babel/highlight/lib --config-file ./.babelrc.test.json
nvm install 4
npm run test
fi
after_script:
- node_modules/.bin/codecov
cache:
yarn: true
directories:
- node_modules
matrix:
fast_finish: true