-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis file from cocoapods-plugins
- Loading branch information
Showing
1 changed file
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
# Sets Travis to run the Ruby specs on OS X machines to be as close as possible | ||
# to the user environment. | ||
# | ||
language: objective-c | ||
addons: | ||
code_climate: | ||
repo_token: 2926ae7ea0b2a6ced8b0d67efa235769ab85de1d9c9f6702f40d80bacec3c9c4 | ||
|
||
env: | ||
# This is what 10.8.x comes with and we want to support that. | ||
- RVM_RUBY_VERSION=system NOEXEC_DISABLE=1 RUBY_VERSION_SPECIFIC='sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2' SSL_CERT_FILE=/usr/local/share/cacert.pem GIT_AUTHOR_NAME=CocoaPods GIT_AUTHOR_EMAIL=cocoapods@example.com PYTHONPATH=/usr/local/lib/python2.7/site-packages | ||
- RVM_RUBY_VERSION=2.0.0-p247 NOEXEC_DISABLE=1 RUBY_VERSION_SPECIFIC='sudo gem install bundler --no-ri --no-rdoc' GIT_AUTHOR_NAME=CocoaPods GIT_AUTHOR_EMAIL=cocoapods@example.com PYTHONPATH=/usr/local/lib/python2.7/site-packages | ||
- RVM_RUBY_VERSION=system | ||
# - RVM_RUBY_VERSION=1.8.7-p358 | ||
|
||
before_install: | ||
- export LANG=en_US.UTF-8 | ||
- curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/share/cacert.pem | ||
- source ~/.rvm/scripts/rvm && rvm use $RVM_RUBY_VERSION | ||
install: eval $RUBY_VERSION_SPECIFIC && rake bootstrap[use_bundle_dir] | ||
script: bundle exec rake spec:ci | ||
- source ~/.rvm/scripts/rvm | ||
- if [[ $RVM_RUBY_VERSION != 'system' ]]; then rvm install $RVM_RUBY_VERSION; fi | ||
- rvm use $RVM_RUBY_VERSION | ||
- if [[ $RVM_RUBY_VERSION == 'system' ]]; then sudo gem install bundler --no-ri --no-rdoc; else gem install bundler --no-ri --no-rdoc; fi | ||
|
||
install: | ||
- sudo bundle install --without=documentation | ||
|
||
script: bundle exec rake spec |