From d4824d3a7eed24f572f94fea415364fe96aa1768 Mon Sep 17 00:00:00 2001 From: Yuchen Zeng Date: Mon, 27 Jun 2016 10:31:53 -0700 Subject: Build ObjC examples in travis --- .travis.yml | 53 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 12 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 16c6390a54..afc6a753de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 -- cgit v1.2.3 From 431c83209a0cb16a741b712c576e33cba5cac363 Mon Sep 17 00:00:00 2001 From: Yuchen Zeng Date: Tue, 28 Jun 2016 12:16:34 -0700 Subject: Reorder the variables --- .travis.yml | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index afc6a753de..42fa7608a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,29 +6,32 @@ env: - 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" + - SCHEME="RxLibraryUnitTests" WORKSPACE="Tests.xcworkspace" + TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" + INTEROP_SERVER="false" + - SCHEME="InteropTestsLocalSSL" WORKSPACE="Tests.xcworkspace" + TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" INTEROP_SERVER="true" + - SCHEME="InteropTestsLocalCleartext" WORKSPACE="Tests.xcworkspace" + TEST_PATH="src/objective-c/tests" 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" + # - SCHEME="InteropTestsRemote" WORKSPACE="Tests.xcworkspace" + # TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" + # INTEROP_SERVER="true" + - SCHEME="HelloWorld" WORKSPACE="HelloWorld.xcworkspace" + TEST_PATH="examples/objective-c/helloworld" BUILD_ONLY="true" + INTEROP_SERVER="false" + - SCHEME="RouteGuideClient" WORKSPACE="RouteGuideClient.xcworkspace" + TEST_PATH="examples/objective-c/route_guide" BUILD_ONLY="true" + INTEROP_SERVER="false" + - SCHEME="AuthSample" WORKSPACE="AuthSample.xcworkspace" + TEST_PATH="examples/objective-c/auth_sample" 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" + - SCHEME="Sample" WORKSPACE="Sample.xcworkspace" + TEST_PATH="src/objective-c/examples/Sample" 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" + - SCHEME="SwiftSample" WORKSPACE="SwiftSample.xcworkspace" + TEST_PATH="src/objective-c/examples/SwiftSample" BUILD_ONLY="true" INTEROP_SERVER="false" before_install: - pod --version -- cgit v1.2.3 From b34608eff20e73f637eb68e8236830e3f79058ea Mon Sep 17 00:00:00 2001 From: Yuchen Zeng Date: Tue, 28 Jun 2016 12:22:25 -0700 Subject: Use 'test' instead of 'build test' --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 42fa7608a2..fcdfd8b2bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,10 +58,10 @@ before_script: script: - if [ "${BUILD_ONLY}" = "true" ]; then xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" - -sdk iphonesimulator9.3 clean build; + -sdk iphonesimulator9.3 build; else xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" - -sdk iphonesimulator9.3 build test; + -sdk iphonesimulator9.3 test; fi notifications: email: false -- cgit v1.2.3