From 37346ead30e6f6c610643bb9a8dfa09a567b02a0 Mon Sep 17 00:00:00 2001 From: gitlabhq Date: Tue, 15 Nov 2011 08:42:01 -0500 Subject: travis --- lib/tasks/travis.rake | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/tasks/travis.rake (limited to 'lib/tasks/travis.rake') diff --git a/lib/tasks/travis.rake b/lib/tasks/travis.rake new file mode 100644 index 00000000000..30392a0735f --- /dev/null +++ b/lib/tasks/travis.rake @@ -0,0 +1,7 @@ +task :travis do + ["rspec spec"].each do |cmd| + puts "Starting to run #{cmd}..." + system("export DISPLAY=:99.0 && bundle exec #{cmd}") + raise "#{cmd} failed!" unless $?.exitstatus == 0 + end +end -- cgit v1.2.1