circle.yml
# Circle CI Continuous Integration Configuration version: 1# general:# build_dir: darcyWebmachine: ruby: version: 2.3.0dependencies: override: - cd darcyWeb && bundle install - cd darcyWeb && bundle exec rake db:setup - cd darcyWeb && bundle exec rake db:migratetest: override: - cd darcyWeb && COVERALLS_REPO_TOKEN=togFVZcnCwIEezRsMHecWBzSIhr7dFS8x bundle exec rspec spec deployment: production: branch: master commands: - | cat >~/.netrc <<EOF machine api.heroku.com login ${HEROKU_EMAIL} password ${HEROKU_PASSWORD} machine git.heroku.com login ${HEROKU_EMAIL} password ${HEROKU_PASSWORD} EOF - chmod 600 ~/.netrc # Heroku cli complains about permissions without this - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" # - git subtree push --prefix darcyWeb git@heroku.com:ondeeunb-prod.git master - git push git@heroku.com:ondeeunb-prod.git `git subtree split --prefix darcyWeb master`:master --force staging: branch: devel commands: - | cat >~/.netrc <<EOF machine api.heroku.com login ${HEROKU_EMAIL} password ${HEROKU_PASSWORD} machine git.heroku.com login ${HEROKU_EMAIL} password ${HEROKU_PASSWORD} EOF - chmod 600 ~/.netrc # Heroku cli complains about permissions without this - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" # - git subtree push --prefix darcyWeb git@heroku.com:ondeeunb-dev.git master - git push git@heroku.com:ondeeunb-dev.git `git subtree split --prefix darcyWeb devel`:master --force