machine:
  ruby:
    version: 2.2.4
  timezone: "America/Chicago"


dependencies:
  bundler:
    without: [oracle]
  pre:
    - cp config/secrets.yml.template config/secrets.yml

test:
  pre:
    - bundle exec rake db:reset
  override:
    - bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec.xml --format progress:
        parallel: true
        files:
          - spec/**/*_spec.rb
          - vendor/engines/**/spec/**/*_spec.rb
  post:
    - bundle exec teaspoon
      --suppress-log
      --format junit > $CIRCLE_TEST_REPORTS/teaspoon.xml
    - bundle exec report_coverage

machine:
  ruby:
    version: 2.2.4
  timezone: "America/Chicago"


dependencies:
  bundler:
    without: [oracle]
  pre:
    - cp config/secrets.yml.template config/secrets.yml

test:
  pre:
    - bundle exec rake db:reset
  override:
    - bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec.xml --format progress:
        parallel: true
        files:
          - spec/**/*_spec.rb
          - vendor/engines/**/spec/**/*_spec.rb
  post:
    - bundle exec teaspoon
      --suppress-log
      --format junit > $CIRCLE_TEST_REPORTS/teaspoon.xml
    - bundle exec report_coverage

deployment:
  staging:
    branch: master
    commands:
      - bundle exec cap staging deploy

Set Circle CI to auto-deploy on commits to master
Set Circle CI to auto-deploy on commits to master
