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: |
| 9 | - TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace" |
| 10 | SCHEME="RxLibraryUnitTests" BUILD_ONLY="false" INTEROP_SERVER="false" |
| 11 | - TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace" |
| 12 | SCHEME="InteropTestsLocalSSL" BUILD_ONLY="false" INTEROP_SERVER="true" |
| 13 | - TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace" |
| 14 | SCHEME="InteropTestsLocalCleartext" BUILD_ONLY="false" |
| 15 | INTEROP_SERVER="true" |
| 16 | # TODO(jcanizales): Investigate why they time out: |
| 17 | # - TEST_PATH="src/objective-c/tests" WORKSPACE="Tests.xcworkspace" |
| 18 | # SCHEME="InteropTestsRemote" BUILD_ONLY=false INTEROP_SERVER=true |
| 19 | - TEST_PATH="examples/objective-c/helloworld" |
| 20 | WORKSPACE="HelloWorld.xcworkspace" SCHEME="HelloWorld" BUILD_ONLY="true" |
| 21 | INTEROP_SERVER="false" |
| 22 | - TEST_PATH="examples/objective-c/route_guide" |
| 23 | WORKSPACE="RouteGuideClient.xcworkspace" SCHEME="RouteGuideClient" |
| 24 | BUILD_ONLY="true" INTEROP_SERVER="false" |
| 25 | - TEST_PATH="examples/objective-c/auth_sample" |
| 26 | WORKSPACE="AuthSample.xcworkspace" SCHEME="AuthSample" BUILD_ONLY="true" |
| 27 | INTEROP_SERVER="false" |
| 28 | - TEST_PATH="src/objective-c/examples/Sample" WORKSPACE="Sample.xcworkspace" |
| 29 | SCHEME="Sample" BUILD_ONLY="true" INTEROP_SERVER="false" |
| 30 | - TEST_PATH="src/objective-c/examples/SwiftSample" |
| 31 | WORKSPACE="SwiftSample.xcworkspace" SCHEME="SwiftSample" BUILD_ONLY="true" |
| 32 | INTEROP_SERVER="false" |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 33 | before_install: |
Jorge Canizales | 44477d2 | 2016-05-20 11:06:04 -0700 | [diff] [blame] | 34 | - pod --version |
| 35 | - gem uninstall cocoapods -a |
Jorge Canizales | c23f556 | 2016-05-20 11:05:23 -0700 | [diff] [blame] | 36 | - gem install cocoapods -v '1.0.0' |
Jorge Canizales | 44477d2 | 2016-05-20 11:06:04 -0700 | [diff] [blame] | 37 | - pod --version |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 38 | - brew install gflags |
Jorge Canizales | e83eff4 | 2016-05-20 13:34:56 -0700 | [diff] [blame] | 39 | - pushd third_party/protobuf |
| 40 | - git checkout v3.0.0-beta-3 |
| 41 | - popd |
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" |
| 58 | -sdk iphonesimulator9.3 clean build; |
| 59 | else |
| 60 | xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" |
| 61 | -sdk iphonesimulator9.3 build test; |
| 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 |