forked from babel/babylon
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
48 lines (42 loc) · 1.3 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
46
47
48
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
- "7"
before_install:
# Rollup doesn't support node < 4.x. Switch to latest for build
- . $HOME/.nvm/nvm.sh
- nvm install stable && nvm use stable
before_script:
- 'if [ -n "${BABEL-}" ]; then make bootstrap-babel ; fi'
- 'if [ -n "${FLOWTESTS-}" ]; then make bootstrap-flow ; fi'
- 'BABEL_ENV=test npm run build'
# Switch back to node version currently being tested prior to test run
- 'nvm use $TRAVIS_NODE_VERSION;'
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -n "${FLOW-}" ]; then npm run flow ; fi'
- 'if [ -n "${FLOWTESTS-}" ]; then make test-flow ; fi'
- 'if [ -n "${BABEL-}" ]; then make test-babel ; fi'
- 'if [ -z "${LINT-}" ] && [ -z "${FLOW-}" ] && [ -z "${BABEL-}" ] && [ -z "${FLOWTESTS-}" ]; then npm run test-ci ; fi'
matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true
- node_js: "node"
env: FLOW=true
- node_js: "node"
env: BABEL=true
- node_js: "node"
env: FLOWTESTS=true
allow_failures:
- node_js: "node"
env: FLOWTESTS=true
after_success: 'if [ -z "${LINT-}" ] && [ -z "${FLOW-}" ] && [ -z "${FLOWTESTS-}" ]; then npm run coverage ; fi'
notifications:
slack: babeljs:5Wy4QX13KVkGy9CnU0rmvgeK