Permalink
Browse files

trying to get travis to work with rake

  • Loading branch information...
Peter Ohler
Peter Ohler committed Sep 26, 2011
1 parent 3e69aef commit 86007e7264477e3a5b951cf180e619c758153a18
Showing with 9 additions and 7 deletions.
  1. +9 −7 Rakefile
View
@@ -1,23 +1,25 @@
#!/usr/bin/env rake
require 'rake'
-require 'rake/extensiontask'
require 'rake/testtask'
require 'yard'
task :default => :build
-task :build => [:clean, :compile]
+task :build => :test
YARD::Rake::YardocTask.new(:doc) do |y|
# use defaults
end
-Rake::ExtensionTask.new(:compile) do |ext|
- ext.name = 'ox'
- ext.ext_dir = 'ext/ox'
- # ext.lib_dir = 'lib/ox'
- ext.lib_dir = 'ext/ox'
+namespace :compile do
+ require 'rake/extensiontask'
+ Rake::ExtensionTask.new do |ext|
+ ext.name = 'ox'
+ ext.ext_dir = 'ext/ox'
+ # ext.lib_dir = 'lib/ox'
+ ext.lib_dir = 'ext/ox'
+ end
end
Rake::TestTask.new(:test) do |t|

0 comments on commit 86007e7

Please sign in to comment.