test:
  override:
    - gulp build unittestreport
  post:
    - mv test-results.xml $CIRCLE_TEST_REPORTS/test-results.xml
    - mkdir $CIRCLE_ARTIFACTS/test-coverage-html
    - mv build/reports/coverage/lcov-report/** $CIRCLE_ARTIFACTS/test-coverage-html

deployment:
  dev:
    branch: master
    heroku:
      appname: hub-admin-ui

test:
  override:
    - gulp build unittestreport
  post:
    - mv test-results.xml $CIRCLE_TEST_REPORTS/test-results.xml
    - mkdir $CIRCLE_ARTIFACTS/test-coverage-html
    - mv build/reports/coverage/lcov-report/** $CIRCLE_ARTIFACTS/test-coverage-html

deployment:
  dev:
    branch: master
    commands:
      - git push git@heroku.com:hub-admin-ui.git $CIRCLE_SHA1:master
      - heroku ps:scale web=1 --app hub-admin-ui
      - curl -v -X POST https://circleci.com/api/v1.1/project/github/NOMS-DIGITAL-STUDIO/hub-function-test?circle-token=$CIRCLE_TOKEN

Add dependency to run functional test.
Hub-158: Add dependency to run functional test.
