-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
29 lines (26 loc) · 1 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
language: ruby
rvm:
- "1.9.3"
branches:
only:
- master
notifications:
campfire:
- secure: "AvKwTOMlzRs2NHBvagomI9R4pU+c4q28d35X08NyE7J4wHEXPqNbLqz6mHks\nL0sVF2o43eHvYtcH8jcUCXUft8tRroY0SLpW1H130B8WUZiVk3SZmIGrXA69\nU+6vxL2mjUsA/n3WopJSTEborPxNrHBXpYfYtzpF6QTgGv9yG38="
before_script:
# Use Google's name servers. The default name servers cannot
# resolve capybara1.elabs.se for unknown reasons.
- sudo su -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf; echo "nameserver 8.8.4.4" >> /etc/resolv.conf'
# install phantomjs
- version=phantomjs-1.7.0-linux-i686
- wget http://phantomjs.googlecode.com/files/$version.tar.bz2
- tar xjf $version.tar.bz2
- mv $version phantomjs
- "export PATH=phantomjs/bin:$PATH"
- phantomjs --version
# setup database
- psql -c 'create database hrt_test;' -U postgres
- "cp config/database.yml.travis config/database.yml"
- "rake db:migrate"
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec