diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-15 08:42:01 -0500 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-15 08:42:01 -0500 |
commit | 37346ead30e6f6c610643bb9a8dfa09a567b02a0 (patch) | |
tree | 25235f0efddc88a333df490d6e3dc462e75cba18 /lib/tasks/travis.rake | |
parent | ed5e19a518ebe62aeb2db87c55a45854df2dcb37 (diff) | |
download | gitlab-ce-37346ead30e6f6c610643bb9a8dfa09a567b02a0.tar.gz |
travis
Diffstat (limited to 'lib/tasks/travis.rake')
-rw-r--r-- | lib/tasks/travis.rake | 7 |
1 files changed, 7 insertions, 0 deletions
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 |