Permalink
Browse files

Move travis install commands to Rakefile and setup CFLAGS env for Tra…

…vis/RVM.
  • Loading branch information...
alloy committed Mar 25, 2012
1 parent 2fb6ae6 commit 714ce913d09bc56454ce2e0bb59efd82de70844f
Showing with 8 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +7 −1 Rakefile
View
@@ -2,5 +2,5 @@ language: ruby
rvm:
- 1.8.7
- 1.9.3
-before_install: git submodule update --init && rake travis:setup && sudo apt-get install subversion
+install: rake travis:install
script: bundle exec rake spec
View
@@ -37,7 +37,13 @@ namespace :travis do
end
end
- task :setup => [:install_opencflite_debs, :fix_rvm_include_dir]
+ task :install do
+ sh "git submodule update --init"
+ sh "sudo apt-get install subversion"
+ sh "env CFLAGS='-I#{rvm_ruby_dir}/include' bundle install"
+ end
+
+ task :setup => [:install_opencflite_debs, :fix_rvm_include_dir, :install]
end
namespace :gem do

0 comments on commit 714ce91

Please sign in to comment.