forked from facebook/relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 821 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
---
language: node_js
node_js:
- '4'
- '5'
- '6'
install: true
env:
- BUILD_EXAMPLE=examples/relay-treasurehunt
- BUILD_EXAMPLE=examples/star-wars
- BUILD_EXAMPLE=examples/todo
- BUILD_EXAMPLE=examples/TodoMVC
- TEST=.
- TEST=scripts/babel-relay-plugin
- TYPECHECK=.
- TYPECHECK=scripts/babel-relay-plugin
matrix:
allow_failures:
- env: BUILD_EXAMPLE=examples/relay-treasurehunt
- env: BUILD_EXAMPLE=examples/star-wars
- env: BUILD_EXAMPLE=examples/todo
- env: BUILD_EXAMPLE=examples/TodoMVC
script:
- |
if [ $BUILD_EXAMPLE ]; then
cd $BUILD_EXAMPLE && npm install && npm run update-schema
fi
- |
if [ $TEST ]; then
cd $TEST && npm install && npm run jest -- --runInBand --no-watchman
fi
- |
if [ $TYPECHECK ]; then
cd $TYPECHECK && npm install && npm run typecheck
fi