Commit 37346ead30e6f6c610643bb9a8dfa09a567b02a0

Authored by gitlabhq
1 parent ed5e19a5

travis

Showing 2 changed files with 15 additions and 0 deletions   Show diff stats
.travis.yml 0 → 100644
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +branches:
  2 + only:
  3 + - 'master'
  4 +rvm: 1.9.2
  5 +before_script:
  6 + - "bundle exec rake db:seed_fu RAILS_ENV=test"
  7 + - "sh -e /etc/init.d/xvfb start"
  8 +script: "bundle exec rake travis"
lib/tasks/travis.rake 0 → 100644
@@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
  1 +task :travis do
  2 + ["rspec spec"].each do |cmd|
  3 + puts "Starting to run #{cmd}..."
  4 + system("export DISPLAY=:99.0 && bundle exec #{cmd}")
  5 + raise "#{cmd} failed!" unless $?.exitstatus == 0
  6 + end
  7 +end