mirror of
https://github.com/zhigang1992/CocoaPods.git
synced 2026-04-29 01:45:36 +08:00
Move travis install commands to Rakefile and setup CFLAGS env for Travis/RVM.
This commit is contained in:
@@ -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
|
||||
|
||||
8
Rakefile
8
Rakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user