machine:
  node:
    version: 6

test:
  post:
    - bash <(curl -s https://codecov.io/bash)

deployment:
  production:
    branch: master
    commands:
      - npm install -g firebase-tools
      - npm run build
      - firebase use $FIREBASE_PRODUCTION_ID --token=$FIREBASE_PRODUCTION_TOKEN --non-interactive
      - firebase deploy --token=$FIREBASE_PRODUCTION_TOKEN --non-interactive

machine:
  node:
    version: 6

test:
  post:
    - bash <(curl -s https://codecov.io/bash)

deployment:
  production:
    branch: master
    commands:
      - yarn install -g firebase-tools
      - yarn run build
      - cp docs/lighthouseReport.html dist/lighthouseReport.html
      - firebase use $FIREBASE_PRODUCTION_ID --token=$FIREBASE_PRODUCTION_TOKEN --non-interactive
      - firebase deploy --token=$FIREBASE_PRODUCTION_TOKEN --non-interactive

Update deploy script to copy lighthouse report
ci: Update deploy script to copy lighthouse report
