dependencies:
  pre:
    - sudo apt-get update; sudo apt-get install pdftk
    - wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
    - unzip chromedriver_linux64.zip
    - sudo cp chromedriver /usr/local/bin/chromedriver
    - curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - sudo dpkg -i google-chrome.deb
    - sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
    - rm google-chrome.deb
  post:
    - bundle exec bundle-audit update && bundle exec bundle-audit check
    - bundle exec brakeman

test:
  override:
    - "RAILS_ENV=test bundle exec rspec -r rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml":
        - timeout: 1200

  post:
    - bundle exec codeclimate-test-reporter $CIRCLE_ARTIFACTS/coverage/.resultset.json

deployment:
  staging:
    branch: master
    commands:
      - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
      - git push git@heroku.com:michigan-benefits-staging.git $CIRCLE_SHA1:refs/heads/master

general:
  branches:
    ignore:
      - /WIP-.*/

dependencies:
  pre:
    - sudo apt-get update; sudo apt-get install pdftk
    - wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
    - unzip chromedriver_linux64.zip
    - sudo cp chromedriver /usr/local/bin/chromedriver
    - curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - sudo dpkg -i google-chrome.deb
    - sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
    - rm google-chrome.deb
  post:
    - bundle exec bundle-audit update && bundle exec bundle-audit check
    - bundle exec brakeman

test:
  override:
    - RAILS_ENV=test bundle exec rspec -r rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
      
  post:
    - bundle exec codeclimate-test-reporter $CIRCLE_ARTIFACTS/coverage/.resultset.json

deployment:
  staging:
    branch: master
    commands:
      - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
      - git push git@heroku.com:michigan-benefits-staging.git $CIRCLE_SHA1:refs/heads/master

general:
  branches:
    ignore:
      - /WIP-.*/

Revert back to original config
Revert back to original config