Skip to content

Commit

Permalink
Update Travis CI build matrix
Browse files Browse the repository at this point in the history
- Drop iOS 7.0.3 runtime
- Use Xcode 6.4 for testing the iOS 7.1 runtime
- Use Xcode 7 for testing the iOS 8.4 and 9.0 runtimes
- Run the UI specs with the Debug configuration so symbolication works properly
  • Loading branch information
tjarratt authored and Brian Croom committed Sep 23, 2015
1 parent 7028700 commit 1ac61b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
26 changes: 14 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
language: objective-c
osx_image: xcode7

env:
matrix:
- CEDAR_SDK_VERSION="8.1" CEDAR_SDK_RUNTIME_VERSION="7.0.3" TASK="rake ci"
- CEDAR_SDK_VERSION="8.1" CEDAR_SDK_RUNTIME_VERSION="7.1" TASK="rake ci"
- CEDAR_SDK_VERSION="8.1" CEDAR_SDK_RUNTIME_VERSION="8.1" TASK="rake ci"
matrix:
include:
- osx_image: xcode6.4
env: CEDAR_SDK_VERSION="8.4" CEDAR_SDK_RUNTIME_VERSION="7.1" TASK="rake ci"
- env: CEDAR_SDK_VERSION="9.0" CEDAR_SDK_RUNTIME_VERSION="8.4" TASK="rake ci"
- env: CEDAR_SDK_VERSION="9.0" CEDAR_SDK_RUNTIME_VERSION="9.0" TASK="rake ci"

# Analyze takes too long -- vary on runtime SDK
- CEDAR_SDK_VERSION="8.1" CEDAR_SDK_RUNTIME_VERSION="8.1" TASK="rake suites:specs:analyze"
- CEDAR_SDK_VERSION="8.1" CEDAR_SDK_RUNTIME_VERSION="8.1" TASK="rake suites:uispecs:analyze"
- CEDAR_SDK_VERSION="8.1" CEDAR_SDK_RUNTIME_VERSION="8.1" TASK="rake suites:focused_specs:analyze"
# Analyze takes too long -- vary on runtime SDK
- env: CEDAR_SDK_VERSION="9.0" TASK="rake suites:specs:analyze"
- env: CEDAR_SDK_VERSION="9.0" TASK="rake suites:uispecs:analyze"
- env: CEDAR_SDK_VERSION="9.0" TASK="rake suites:focused_specs:analyze"

- TASK="./install.sh"
- TASK="./installCodeSnippetsAndTemplates"
- env: TASK="./install.sh"
- env: TASK="./installCodeSnippetsAndTemplates"

before_install: brew update
before_install: brew update; brew update
install:
- bundle install
- brew install ios-sim
Expand Down
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ class Xcode
args += " -target #{options[:target].inspect}" if options[:target]
args += " -sdk #{options[:sdk].inspect}" if options[:sdk]
args += " -scheme #{options[:scheme].inspect}" if options[:scheme]
args += " -configuration #{options[:configuration] || CONFIGURATION}"

Shell.fold "build.#{options[:scheme] || options[:target]}" do
Shell.run(%Q(xcodebuild -project #{PROJECT_NAME}.xcodeproj -configuration #{CONFIGURATION} SYMROOT=#{BUILD_DIR.inspect} clean build #{args}), logfile)
Shell.run(%Q(xcodebuild -project #{PROJECT_NAME}.xcodeproj SYMROOT=#{BUILD_DIR.inspect} clean build #{args}), logfile)
end
end

Expand Down Expand Up @@ -334,7 +335,7 @@ namespace :suites do

desc "Build UI specs"
task :build do
Xcode.build(target: UI_SPECS_TARGET_NAME, sdk: "iphonesimulator#{SDK_VERSION}", args: 'ARCHS=i386', logfile: "uispecs.build.log")
Xcode.build(target: UI_SPECS_TARGET_NAME, sdk: "iphonesimulator#{SDK_VERSION}", args: 'ARCHS=i386', configuration: "Debug", logfile: "uispecs.build.log")
end

desc "Run UI specs"
Expand Down

0 comments on commit 1ac61b7

Please sign in to comment.