Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
2fb6ae6d
Commit
2fb6ae6d
authored
Mar 25, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hmm, chicken and egg problem on Travis, copy travis:setup task from Xcodeproj.
parent
c8ce61f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
.travis.yml
.travis.yml
+1
-1
Rakefile
Rakefile
+42
-0
No files found.
.travis.yml
View file @
2fb6ae6d
...
@@ -2,5 +2,5 @@ language: ruby
...
@@ -2,5 +2,5 @@ language: ruby
rvm
:
rvm
:
-
1.8.7
-
1.8.7
-
1.9.3
-
1.9.3
install
:
git submodule update --init && bundle install --path bundle && pushd . && cd bundle/ruby/*/bundler/gems/Xcodeproj-* && rake travis:setup && popd
&& sudo apt-get install subversion
before_install
:
git submodule update --init && rake travis:setup
&& sudo apt-get install subversion
script
:
bundle exec rake spec
script
:
bundle exec rake spec
Rakefile
View file @
2fb6ae6d
# Travis support
def
on_rvm?
`which ruby`
.
strip
.
include?
(
'.rvm'
)
end
def
rvm_ruby_dir
@rvm_ruby_dir
||=
File
.
expand_path
(
'../..'
,
`which ruby`
.
strip
)
end
namespace
:travis
do
# Used to create the deb package.
#
# Known to work with opencflite rev 248.
task
:prepare_deb
do
sh
"sudo apt-get install subversion libicu-dev"
sh
"svn co https://opencflite.svn.sourceforge.net/svnroot/opencflite/trunk opencflite"
sh
"cd opencflite && ./configure --target=linux --with-uuid=/usr --with-tz-includes=./include --prefix=/usr/local && make && sudo make install"
sh
"sudo /sbin/ldconfig"
end
task
:install_opencflite_debs
do
sh
"mkdir -p debs"
Dir
.
chdir
(
"debs"
)
do
base_url
=
"https://github.com/downloads/CocoaPods/OpenCFLite"
%w{ opencflite1_248-1_i386.deb opencflite-dev_248-1_i386.deb }
.
each
do
|
deb
|
sh
"wget
#{
File
.
join
(
base_url
,
deb
)
}
"
unless
File
.
exist?
(
deb
)
end
sh
"sudo dpkg -i *.deb"
end
end
task
:fix_rvm_include_dir
do
unless
File
.
exist?
(
File
.
join
(
rvm_ruby_dir
,
'include'
))
# Make Ruby headers available, RVM seems to do not create a include dir on 1.8.7, but it does on 1.9.3.
sh
"mkdir '
#{
rvm_ruby_dir
}
/include'"
sh
"ln -s '
#{
rvm_ruby_dir
}
/lib/ruby/1.8/i686-linux' '
#{
rvm_ruby_dir
}
/include/ruby'"
end
end
task
:setup
=>
[
:install_opencflite_debs
,
:fix_rvm_include_dir
]
end
namespace
:gem
do
namespace
:gem
do
def
gem_version
def
gem_version
require
File
.
join
(
File
.
dirname
(
__FILE__
),
*
%w[lib cocoapods]
)
require
File
.
join
(
File
.
dirname
(
__FILE__
),
*
%w[lib cocoapods]
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment