---
language: node_js
node_js:
- '4'
- '5'
- '6'
install: true
env:
- TYPECHECK=.
- TYPECHECK=scripts/babel-relay-plugin
- TEST=.
- TEST=scripts/babel-relay-plugin
script:
- |
    if [ $TYPECHECK ]; then
      cd $TYPECHECK && npm install && npm run typecheck
    fi
    if [ $TEST ]; then
      cd $TEST && npm install && npm run jest -- --runInBand --no-watchman
    fi

---
language: node_js
node_js:
- '4'
- '5'
- '6'
install: true
env:
- TEST=.
- TEST=scripts/babel-relay-plugin
- TYPECHECK=.
- TYPECHECK=scripts/babel-relay-plugin
script:
- |
    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

Split scripts into two so Travis can aggregate error codes more easily
Split scripts into two so Travis can aggregate error codes more easily

Summary: Closes https://github.com/facebook/relay/pull/1182

Differential Revision: D3361786

Pulled By: steveluscher

fbshipit-source-id: 29ae0b56ac9e11ea4560380df9e756b7c5aeef15
