machine:
  node:
    version: 4.2.2
test:
  override:
    - ./node_modules/.bin/mocha --compilers js:babel-core/register ./app/**/*.spec.js
deployment:
  # production:
  #   branch: production
  #   commands:
  #     - node ./scripts/releaseToProduction.js
  staging:
    branch: master
    commands:
      - node ./scripts/releaseToStaging.js

machine:
  node:
    version: 4.2.2
dependencies:
  post:
    - npm install -g react-native-cli
test:
  override:
    - ./node_modules/.bin/mocha --compilers js:babel-core/register ./app/**/*.spec.js
deployment:
  # production:
  #   branch: production
  #   commands:
  #     - node ./scripts/releaseToProduction.js
  staging:
    branch: master
    commands:
      - node ./scripts/releaseToStaging.js

Install react-native-cli globally to surpress error about wrong-react-native in node_modules/.bin
Install react-native-cli globally to surpress error about wrong-react-native in node_modules/.bin
