machine:
  node:
    version: 6
  pre:
    - mkdir ~/.yarn-cache
deployment:
  staging:
    branch: master
    owner: artsy
    commands:
      - git push git@heroku.com:artsy-metaphysics-staging.git $CIRCLE_SHA1:refs/heads/master
      - heroku restart --app artsy-metaphysics-staging
dependencies:
  override:
    - yarn install < /dev/null
  cache_directories:
    - ~/.yarn-cache
test:
  override:
    - "DANG=811cbbb6dff14fe34cc7f ER_TOKEN=7e0778afdd8b1508764 DANGER_GITHUB_API_TOKEN=${DANG}${ER_TOKEN} npm run danger"
    - npm run test -- --runInBand

machine:
  node:
    version: 6
  pre:
    - mkdir ~/.yarn-cache
deployment:
  staging:
    branch: master
    owner: artsy
    commands:
      - git push git@heroku.com:artsy-metaphysics-staging.git $CIRCLE_SHA1:refs/heads/master
      - heroku restart --app artsy-metaphysics-staging
  production:
    branch: release
    owner: artsy
    commands:
      - heroku pipelines:promote --app artsy-metaphysics-staging
dependencies:
  override:
    - yarn install < /dev/null
  cache_directories:
    - ~/.yarn-cache
test:
  override:
    - "DANG=811cbbb6dff14fe34cc7f ER_TOKEN=7e0778afdd8b1508764 DANGER_GITHUB_API_TOKEN=${DANG}${ER_TOKEN} npm run danger"
    - npm run test -- --runInBand

Deploy on PRs from master -> release via Circle doing a pipeline promotion
Deploy on PRs from master -> release via Circle doing a pipeline promotion
