-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
46 lines (42 loc) · 1.7 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# language: ruby
# rvm:
# - 2.1.2
# services:
# - mongodb
# env:
# global:
# - APP_NAME=sackapp
# - MONGOHQ_URL=mongodb://heroku:[email protected]:10038/app20097695
# - CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage
# - secure: GG5wquGkb8+DRcBmQLxMJVXFdk4V5aNn+kxDo38SlGU9xGh84QyFUVLj7C1tEqCmhPuS8FaZ2ZbhplEVSwLs5WKVxv9V4NKE03AT0rzh1lpYkZJrT6urlFi9XFI2fdlvf5ir09t1+MhOEPMZMNzb2PhajIx/CeFCDVwX5U/hNWo=
# before_install:
# - which heroku || wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
# before_script:
# - mkdir -p shippable/testresults
# - mkdir -p shippable/codecoverage
# 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 --app $APP_NAME
# - git push -f heroku $BRANCH:master
# - heroku run rake db:migrate
language: ruby
rvm:
- 2.1.2
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
services: mongodb
notifications:
flowdock: 0e2bc8fa61d987db46b0fe9b2f217b0b
before_install:
- which heroku || wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
deploy:
provider: heroku
api_key:
secure: GG5wquGkb8+DRcBmQLxMJVXFdk4V5aNn+kxDo38SlGU9xGh84QyFUVLj7C1tEqCmhPuS8FaZ2ZbhplEVSwLs5WKVxv9V4NKE03AT0rzh1lpYkZJrT6urlFi9XFI2fdlvf5ir09t1+MhOEPMZMNzb2PhajIx/CeFCDVwX5U/hNWo=
app: sackapp
after_success:
- 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 --app $APP_NAME
- git push -f heroku $BRANCH:master
# - heroku run rake db:migrate