Skip to content

Commit

Permalink
Build ObjC examples in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
y-zeng committed Jun 27, 2016
1 parent b8431ae commit d4824d3
Showing 1 changed file with 41 additions and 12 deletions.
53 changes: 41 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ env:
- CONFIG=opt
- TEST=objc
- JOBS=1
matrix:
- TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace"
SCHEME="RxLibraryUnitTests" BUILD_ONLY="false" INTEROP_SERVER="false"
- TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace"
SCHEME="InteropTestsLocalSSL" BUILD_ONLY="false" INTEROP_SERVER="true"
- TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace"
SCHEME="InteropTestsLocalCleartext" BUILD_ONLY="false"
INTEROP_SERVER="true"
# TODO(jcanizales): Investigate why they time out:
# - TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace"
# SCHEME="InteropTestsRemote" BUILD_ONLY=false INTEROP_SERVER=true
- TEST_PATH="examples/objective-c/helloworld"
WORKSPACE="HelloWorld.xcworkspace" SCHEME="HelloWorld" BUILD_ONLY="true"
INTEROP_SERVER="false"
- TEST_PATH="examples/objective-c/route_guide"
WORKSPACE="RouteGuideClient.xcworkspace" SCHEME="RouteGuideClient"
BUILD_ONLY="true" INTEROP_SERVER="false"
- TEST_PATH="examples/objective-c/auth_sample"
WORKSPACE="AuthSample.xcworkspace" SCHEME="AuthSample" BUILD_ONLY="true"
INTEROP_SERVER="false"
- TEST_PATH="src/objective-c/examples/Sample" WORKSPACE="Sample.xcworkspace"
SCHEME="Sample" BUILD_ONLY="true" INTEROP_SERVER="false"
- TEST_PATH="src/objective-c/examples/SwiftSample"
WORKSPACE="SwiftSample.xcworkspace" SCHEME="SwiftSample" BUILD_ONLY="true"
INTEROP_SERVER="false"
before_install:
- pod --version
- gem uninstall cocoapods -a
Expand All @@ -16,20 +41,24 @@ before_install:
- popd
install:
- make grpc_objective_c_plugin
- pushd src/objective-c/tests
- install bins/opt/grpc_objective_c_plugin /usr/local/bin/protoc-gen-objcgrpc
- install bins/opt/protobuf/protoc /usr/local/bin/protoc
- pushd $TEST_PATH
- pod install
- popd
before_script:
- make interop_server
- bins/$CONFIG/interop_server --port=5050 &
- bins/$CONFIG/interop_server --port=5051 --use_tls &
xcode_workspace: src/objective-c/tests/Tests.xcworkspace
xcode_scheme:
- RxLibraryUnitTests
- InteropTestsLocalSSL
- InteropTestsLocalCleartext
# TODO(jcanizales): Investigate why they time out:
# - InteropTestsRemote
xcode_sdk: iphonesimulator9.3
- if [ "${INTEROP_SERVER}" = "true" ]; then
make interop_server;
(bins/$CONFIG/interop_server --port=5050 &);
(bins/$CONFIG/interop_server --port=5051 --use_tls &);
fi
script:
- if [ "${BUILD_ONLY}" = "true" ]; then
xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME"
-sdk iphonesimulator9.3 clean build;
else
xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME"
-sdk iphonesimulator9.3 build test;
fi
notifications:
email: false

0 comments on commit d4824d3

Please sign in to comment.