Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
8b31d741
Commit
8b31d741
authored
Nov 09, 2015
by
Thomas Van Lenten
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #960 from thomasvl/xctool_support
Switch ObjC Travis testing to using xctool
parents
a663afb2
76b61384
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
6 deletions
+43
-6
travis.sh
travis.sh
+43
-6
No files found.
travis.sh
View file @
8b31d741
...
...
@@ -129,18 +129,55 @@ internal_install_python_deps() {
fi
}
build_objectivec_common
()
{
# Reused the build script that takes care of configure and then Xcode
# builds/tests.
objectivec/DevTools/full_mac_build.sh
--core-only
"
$@
"
internal_objectivec_common
()
{
# Make sure xctool is up to date. Adapted from
# http://docs.travis-ci.com/user/osx-ci-environment/
# We don't use a before_install because we test multiple OSes.
brew update
brew outdated xctool
||
brew upgrade xctool
# Reused the build script that takes care of configuring and ensuring things
# are up to date.
objectivec/DevTools/full_mac_build.sh
--core-only
--skip-xcode
}
internal_xctool_debug_and_release
()
{
xctool
-configuration
Debug
"
$@
"
xctool
-configuration
Release
"
$@
"
}
build_objectivec_ios
()
{
build_objectivec_common
--skip-xcode-osx
internal_objectivec_common
# https://github.com/facebook/xctool/issues/509 - unlike xcodebuild, xctool
# doesn't support >1 destination, so we have to build first and then run the
# tests one destination at a time.
internal_xctool_debug_and_release
\
-project
objectivec/ProtocolBuffers_iOS.xcodeproj
\
-scheme
ProtocolBuffers
\
-sdk
iphonesimulator
\
build-tests
IOS_DESTINATIONS
=(
"platform=iOS Simulator,name=iPhone 4s,OS=8.1"
# 32bit
"platform=iOS Simulator,name=iPhone 6,OS=9.1"
# 64bit
"platform=iOS Simulator,name=iPad 2,OS=8.1"
# 32bit
"platform=iOS Simulator,name=iPad Air,OS=9.1"
# 64bit
)
for
i
in
"
${
IOS_DESTINATIONS
[@]
}
"
;
do
internal_xctool_debug_and_release
\
-project
objectivec/ProtocolBuffers_iOS.xcodeproj
\
-scheme
ProtocolBuffers
\
-sdk
iphonesimulator
\
-destination
"
${
i
}
"
\
run-tests
done
}
build_objectivec_osx
()
{
build_objectivec_common
--skip-xcode-ios
internal_objectivec_common
internal_xctool_debug_and_release
\
-project
objectivec/ProtocolBuffers_OSX.xcodeproj
\
-scheme
ProtocolBuffers
\
-destination
"platform=OS X,arch=x86_64"
\
test
}
build_python
()
{
...
...
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