fga-gpp-mds/2017.1-OndeE-UnB

View on GitHub
circle.yml

Summary

Maintainability
Test Coverage
# Circle CI Continuous Integration Configuration
 
version: 1
# general:
# build_dir: darcyWeb
machine:
ruby:
version: 2.3.0
dependencies:
override:
- cd darcyWeb && bundle install
- cd darcyWeb && bundle exec rake db:setup
- cd darcyWeb && bundle exec rake db:migrate
test:
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