-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
40 lines (37 loc) · 1.16 KB
/
.travis.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
language: node_js
node_js:
- "0.11"
before_script:
- npm install -g grunt-cli bower
- bower install
- psql -c 'create database travis_ci_test;' -U postgres
after_script:
# Install the Heroku package (or the Heroku toolbelt)
- npm install heroku
# Add your Heroku git repo:
- git remote add heroku [email protected]:germ-tracker.git
# Turn off warnings about SSH keys:
- echo "Host heroku.com" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
- echo " CheckHostIP no" >> ~/.ssh/config
- echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
# Download and install Heroku toolbelt locally
- wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
# Clear your current Heroku SSH keys:
- heroku keys: clear
# Add a new SSH key to Heroku
- yes | heroku keys:add
# Push to Heroku!
- yes | git push heroku master
# Clears heroku keys again after pushing
- yes | heroku keys: clear
notifications:
email:
recipients:
on_success: never
on_failure: always