Nicolas "Pixel" Noble | de87e1c | 2015-09-25 22:21:38 +0200 | [diff] [blame] | 1 | language: objective-c |
Jorge Canizales | 0ee18c2 | 2016-05-20 11:06:58 -0700 | [diff] [blame] | 2 | osx_image: xcode7.3 |
murgatroid99 | 7e14dd8 | 2015-02-27 15:06:03 -0800 | [diff] [blame] | 3 | env: |
murgatroid99 | 2399160 | 2015-02-27 15:39:03 -0800 | [diff] [blame] | 4 | global: |
Nicolas "Pixel" Noble | de87e1c | 2015-09-25 22:21:38 +0200 | [diff] [blame] | 5 | - CONFIG=opt |
| 6 | - TEST=objc |
| 7 | - JOBS=1 |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 8 | matrix: |
Yuchen Zeng | 431c832 | 2016-06-28 12:16:34 -0700 | [diff] [blame] | 9 | - SCHEME="RxLibraryUnitTests" WORKSPACE="Tests.xcworkspace" |
| 10 | TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
| 11 | INTEROP_SERVER="false" |
| 12 | - SCHEME="InteropTestsLocalSSL" WORKSPACE="Tests.xcworkspace" |
| 13 | TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" INTEROP_SERVER="true" |
| 14 | - SCHEME="InteropTestsLocalCleartext" WORKSPACE="Tests.xcworkspace" |
| 15 | TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 16 | INTEROP_SERVER="true" |
| 17 | # TODO(jcanizales): Investigate why they time out: |
Yuchen Zeng | 431c832 | 2016-06-28 12:16:34 -0700 | [diff] [blame] | 18 | # - SCHEME="InteropTestsRemote" WORKSPACE="Tests.xcworkspace" |
| 19 | # TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
| 20 | # INTEROP_SERVER="true" |
| 21 | - SCHEME="HelloWorld" WORKSPACE="HelloWorld.xcworkspace" |
| 22 | TEST_PATH="examples/objective-c/helloworld" BUILD_ONLY="true" |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 23 | INTEROP_SERVER="false" |
Yuchen Zeng | 431c832 | 2016-06-28 12:16:34 -0700 | [diff] [blame] | 24 | - SCHEME="RouteGuideClient" WORKSPACE="RouteGuideClient.xcworkspace" |
| 25 | TEST_PATH="examples/objective-c/route_guide" BUILD_ONLY="true" |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 26 | INTEROP_SERVER="false" |
Yuchen Zeng | 431c832 | 2016-06-28 12:16:34 -0700 | [diff] [blame] | 27 | - SCHEME="AuthSample" WORKSPACE="AuthSample.xcworkspace" |
| 28 | TEST_PATH="examples/objective-c/auth_sample" BUILD_ONLY="true" |
| 29 | INTEROP_SERVER="false" |
| 30 | - SCHEME="Sample" WORKSPACE="Sample.xcworkspace" |
| 31 | TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true" |
| 32 | INTEROP_SERVER="false" |
| 33 | - SCHEME="SwiftSample" WORKSPACE="SwiftSample.xcworkspace" |
| 34 | TEST_PATH="src/objective-c/examples/SwiftSample" BUILD_ONLY="true" |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 35 | INTEROP_SERVER="false" |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 36 | before_install: |
Jorge Canizales | 44477d2 | 2016-05-20 11:06:04 -0700 | [diff] [blame] | 37 | - pod --version |
| 38 | - gem uninstall cocoapods -a |
Jorge Canizales | c23f556 | 2016-05-20 11:05:23 -0700 | [diff] [blame] | 39 | - gem install cocoapods -v '1.0.0' |
Jorge Canizales | 44477d2 | 2016-05-20 11:06:04 -0700 | [diff] [blame] | 40 | - pod --version |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 41 | - brew install gflags |
Jorge Canizales | bda3476 | 2015-10-28 03:48:42 -0700 | [diff] [blame] | 42 | install: |
Jorge Canizales | abf596c | 2015-10-28 16:55:02 -0700 | [diff] [blame] | 43 | - make grpc_objective_c_plugin |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 44 | - install bins/opt/grpc_objective_c_plugin /usr/local/bin/protoc-gen-objcgrpc |
| 45 | - install bins/opt/protobuf/protoc /usr/local/bin/protoc |
| 46 | - pushd $TEST_PATH |
Jorge Canizales | eba2b1c | 2016-05-20 11:06:33 -0700 | [diff] [blame] | 47 | - pod install |
Jorge Canizales | bda3476 | 2015-10-28 03:48:42 -0700 | [diff] [blame] | 48 | - popd |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 49 | before_script: |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 50 | - if [ "${INTEROP_SERVER}" = "true" ]; then |
| 51 | make interop_server; |
| 52 | (bins/$CONFIG/interop_server --port=5050 &); |
| 53 | (bins/$CONFIG/interop_server --port=5051 --use_tls &); |
| 54 | fi |
| 55 | script: |
| 56 | - if [ "${BUILD_ONLY}" = "true" ]; then |
| 57 | xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" |
Yuchen Zeng | b34608e | 2016-06-28 12:22:25 -0700 | [diff] [blame] | 58 | -sdk iphonesimulator9.3 build; |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 59 | else |
| 60 | xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" |
Yuchen Zeng | b34608e | 2016-06-28 12:22:25 -0700 | [diff] [blame] | 61 | -sdk iphonesimulator9.3 test; |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 62 | fi |
Nicolas "Pixel" Noble | 9f1baf7 | 2015-02-26 18:50:03 +0100 | [diff] [blame] | 63 | notifications: |
Nicolas "Pixel" Noble | d30b005 | 2015-03-03 04:30:00 +0100 | [diff] [blame] | 64 | email: false |