forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 783 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
38
39
40
41
42
43
44
---
language: node_js
node_js:
- node
- "8"
- "6"
cache:
yarn: true
directories:
- node_modules
env:
global:
- NODE_ENV=development
matrix:
- JOB=test AST_COMPARE=1
matrix:
fast_finish: true
include:
- node_js: "node"
env: JOB=lint
# Our test fail with a segfault in node 6
# (see https://github.com/prettier/prettier/issues/3457)
# To prevent making our Travis run useless, mark Node 6 as allowed to fail.
allow_failures:
- node_js: "6"
install:
- yarn install
before_script:
- yarn check-deps
script:
- if [ "${JOB}" = "lint" ]; then yarn lint && yarn lint-docs; fi
- if [ "${JOB}" = "test" ]; then yarn test --runInBand --ci; fi
- if [ "${JOB}" = "test" ]; then yarn codecov; fi
branches:
only:
- master