Install firefox on travis. Only run cucumber to save time while experimenting.
This commit is contained in:
parent
392db905cb
commit
14324aecc2
2 changed files with 5 additions and 2 deletions
|
|
@ -3,14 +3,17 @@ rvm:
|
||||||
- ree
|
- ree
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- "sudo aptitude -y install firefox"
|
||||||
- "sudo cp config/ci/xvfb /etc/init.d/xvfb"
|
- "sudo cp config/ci/xvfb /etc/init.d/xvfb"
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
- "sass --update public/stylesheets/sass/:public/stylesheets/"
|
- "sass --update public/stylesheets/sass/:public/stylesheets/"
|
||||||
- "cp config/database.yml.example config/database.yml"
|
- "cp config/database.yml.example config/database.yml"
|
||||||
- "rake db:create"
|
- "rake db:create"
|
||||||
- "rake db:schema:load"
|
- "rake db:schema:load"
|
||||||
- "rspec spec --tag fixture"
|
|
||||||
script: "bundle exec rake travis"
|
script: "bundle exec rake travis"
|
||||||
|
|
||||||
env: "TRAVIS=true"
|
env: "TRAVIS=true"
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace :cruise do
|
||||||
end
|
end
|
||||||
|
|
||||||
task :travis do
|
task :travis do
|
||||||
system('export DISPLAY=:99.0 && CI=true bundle exec rake')
|
system('export DISPLAY=:99.0 && CI=true bundle exec cucumber')
|
||||||
raise "tests failed!" unless $?.exitstatus == 0
|
raise "tests failed!" unless $?.exitstatus == 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue