-
Notifications
You must be signed in to change notification settings - Fork 18
/
shippable.yml
23 lines (19 loc) · 1.06 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: ruby
rvm:
- 1.9.3
env:
global:
- APP_NAME=fierce-plains-1014
- CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage
- secure: MRuHkLbL9HPkJPU5lzkKM1+NOq1S5RrhxEyhJkk60xxYiF7DMzydiBN8oFBjWrSmyGeGRuEC22a0I5ItobdWVszfcJCaXHwtfKzfGOUdKuyCnDgvojXhv/jrBvULyLK6zsLw3b8NMxdnwNsHqSPm19qW/EIGEl9Zv/637Igos69z9aT7+xrEG013+6HtKYb8RHm+iPSNsFoBi/RSAHYuM1eLTZWG2WAkjgzZaYmrHCgNwVmk+HOGR+TOWN7Iu5lrjyvC1XDCQrOvo1hZI30cd9OqJ5aadFm3exQpNhI4I7AgOnCbK3NoWNc/GAnqKXCvsaIQ80Jd/uLIOVyMjD6Xmg==
before_install:
- which heroku || wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- psql -c 'create database "sample-rubyonrails-postgres-heroku_test";' -U postgres
after_success:
- test -f ~/.ssh/id_rsa.heroku || ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.heroku && heroku keys:add ~/.ssh/id_rsa.heroku
- git remote -v | grep ^heroku || heroku git:remote --ssh-git --app $APP_NAME
- git push -f heroku $BRANCH:master
- heroku run rake db:migrate