Skip to content

Add Xcode 7 to Travis-CI. #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 39 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,51 @@ branches:
only:
- master
language: objective-c
osx_image: xcode6.4
os: osx
matrix:
include:
- osx_image: xcode6.4
env:
- TEST_TYPE=ios
- SDK_VERSION=8.4
- osx_image: xcode6.4
env:
- TEST_TYPE=osx
- SDK_VERSION=10.10
- osx_image: xcode6.4
env: TEST_TYPE=deployment
- osx_image: xcode6.4
env: TEST_TYPE=starters
- osx_image: xcode6.4
env: TEST_TYPE=podspecs
- osx_image: xcode7
env:
- TEST_TYPE=ios
- SDK_VERSION=9.0
- osx_image: xcode7
env:
- TEST_TYPE=osx
- SDK_VERSION=10.11
- osx_image: xcode7
env: TEST_TYPE=podspecs
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
matrix:
- TEST_TYPE=ios
- TEST_TYPE=osx
- TEST_TYPE=deployment
- TEST_TYPE=starters
- TEST_TYPE=podspecs
install:
- bundle install
- |
if [ -n "$TEST_TYPE" ]; then
bundle install
fi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg you can use | for multi-line commands in Travis-CI .yml files?!?!

script:
- bundle exec rake test:$TEST_TYPE
- |
if [ -n "$TEST_TYPE" ]; then
if [ -n "$SDK_VERSION" ]; then
bundle exec rake test:$TEST_TYPE[$SDK_VERSION]
else
bundle exec rake test:$TEST_TYPE
fi
fi
after_success:
- |
if [ "$TEST_TYPE" = "ios" ] || [ "$TEST_TYPE" = "osx" ]; then
Expand Down
14 changes: 8 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,16 @@ end

namespace :test do
desc 'Run iOS Tests'
task :ios do |_|
task :ios, :sdk_version do |_, args|
sdk_version = args[:sdk_version] || '8.4'
task = XCTask::BuildTask.new do |t|
t.directory = script_folder
t.workspace = 'Parse.xcworkspace'

t.scheme = 'Parse-iOS'
t.sdk = 'iphonesimulator8.4'
t.destinations = ['"platform=iOS Simulator,OS=8.4,name=iPhone 4s"',
'"platform=iOS Simulator,OS=8.4,name=iPhone 6 Plus"']
t.sdk = "iphonesimulator#{sdk_version}"
t.destinations = ["\"platform=iOS Simulator,OS=#{sdk_version},name=iPhone 4s\"",
"\"platform=iOS Simulator,OS=#{sdk_version},name=iPhone 6 Plus\"",]
t.configuration = 'Test'

t.actions = [XCTask::BuildAction::TEST]
Expand All @@ -223,13 +224,14 @@ namespace :test do
end

desc 'Run OS X Tests'
task :osx do |_|
task :osx, :sdk_version do |_, args|
sdk_version = args[:sdk_version] || '10.10'
task = XCTask::BuildTask.new do |t|
t.directory = script_folder
t.workspace = 'Parse.xcworkspace'

t.scheme = 'Parse-OSX'
t.sdk = 'macosx10.10'
t.sdk = "macosx#{sdk_version}"
t.destinations = ['arch=x86_64']
t.configuration = 'Test'

Expand Down