language: node_js

node_js:
 - "7"
 - "6"

cache:
  yarn: true
  directories:
    - node_modules
    - example/node_modules
    - jest-cache
    - example/jest-cache2

install:
 - yarn install
 - cd example && yarn install
 - cd ..

script:
 - yarn run lint
# Ignoring flow for now because it just fails on all sorts of React Native issues.
# - yarn run flow
 - yarn test -- --cacheDirectory="jest-cache"
 - cd example && yarn test -- --cacheDirectory="jest-cache2"

language: node_js

node_js:
 - "8"
 - "6"

cache:
  yarn: true
  directories:
    - node_modules
    - example/node_modules
    - jest-cache
    - example/jest-cache2

install:
 - yarn install
 - cd example && yarn install
 - cd ..

script:
 - yarn run lint
# Ignoring flow for now because it just fails on all sorts of React Native issues.
# - yarn run flow
 - yarn test -- --cacheDirectory="jest-cache"
 - cd example && yarn test -- --cacheDirectory="jest-cache2"

Test on node 8 instead of 7
:wrench: Test on node 8 instead of 7
