Permalink
Browse files

Adding TravisCI

  • Loading branch information...
1 parent 462d5a3 commit dceae189c608a7c61bde7f347c02478404d773b8 @winton committed Jul 7, 2012
Showing with 13 additions and 2 deletions.
  1. +5 −0 .travis.yml
  2. +7 −1 Rakefile
  3. +1 −1 ext/change/makefile
View
5 .travis.yml
@@ -0,0 +1,5 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
View
8 Rakefile
@@ -4,4 +4,10 @@ require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end
-task :default => :spec
+
+task :default do
+ Dir.chdir("ext/change") do
+ system("make && make install")
+ end
+ Rake::Task['spec'].execute
+end
View
2 ext/change/makefile
@@ -4,5 +4,5 @@ all: change
change: change.o murmur3.o
install:
rm *.o
- mv change ../../bin/murmur3
+ mv -f change ../../bin/murmur3
chmod +x ../../bin/murmur3

0 comments on commit dceae18

Please sign in to comment.