machine: services: - rabbitmq-server environment: DATABASE_URI: postgres://postgres@localhost:5432/jsonical_test CODECLIMATE_REPO_TOKEN: b825ccacc4597f8eae79b685bf01126994a0d38e4f4e6fb47ffa0e1fdad1ec20 COVERAGE: true BROKER_URI: amqp://localhost:5672 database: override: - psql -c 'create database jsonical_test;' -U postgres - bin/setup-ci test: override: - bin/rspec post: - bundle exec codeclimate-test-reporter deployment: production: branch: master commands: - heroku scale async=0 -a jsonical - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" - git push git@heroku.com:jsonical.git $CIRCLE_SHA1:refs/heads/master - heroku run bin/migration -a jsonical: timeout: 400 - heroku scale async=1 -a jsonical