Jorge Canizales | 1e6d127 | 2016-07-13 00:25:18 -0700 | [diff] [blame] | 1 | git: |
| 2 | depth: 1 |
Nicolas "Pixel" Noble | de87e1c | 2015-09-25 22:21:38 +0200 | [diff] [blame] | 3 | language: objective-c |
Jorge Canizales | 0ee18c2 | 2016-05-20 11:06:58 -0700 | [diff] [blame] | 4 | osx_image: xcode7.3 |
murgatroid99 | 7e14dd8 | 2015-02-27 15:06:03 -0800 | [diff] [blame] | 5 | env: |
murgatroid99 | 2399160 | 2015-02-27 15:39:03 -0800 | [diff] [blame] | 6 | global: |
Nicolas "Pixel" Noble | de87e1c | 2015-09-25 22:21:38 +0200 | [diff] [blame] | 7 | - CONFIG=opt |
| 8 | - TEST=objc |
| 9 | - JOBS=1 |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 10 | matrix: |
Jorge Canizales | 8e42807 | 2016-07-15 23:25:08 -0700 | [diff] [blame] | 11 | - SCHEME="RxLibraryUnitTests" |
| 12 | WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
Yuchen Zeng | 431c832 | 2016-06-28 12:16:34 -0700 | [diff] [blame] | 13 | INTEROP_SERVER="false" |
Jorge Canizales | 8e42807 | 2016-07-15 23:25:08 -0700 | [diff] [blame] | 14 | - SCHEME="InteropTestsLocalSSL" |
| 15 | WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
| 16 | INTEROP_SERVER="true" |
| 17 | - SCHEME="InteropTestsLocalCleartext" |
| 18 | WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 19 | INTEROP_SERVER="true" |
Jorge Canizales | 34b0cd0 | 2016-07-12 11:44:35 -0700 | [diff] [blame] | 20 | # TODO(jcanizales): Make tests an app project (instead of library), so the following will work. |
Jorge Canizales | 8e42807 | 2016-07-15 23:25:08 -0700 | [diff] [blame] | 21 | # - SCHEME="InteropTestsRemote" |
| 22 | # WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false" |
Yuchen Zeng | 431c832 | 2016-06-28 12:16:34 -0700 | [diff] [blame] | 23 | # INTEROP_SERVER="true" |
Jorge Canizales | 8e42807 | 2016-07-15 23:25:08 -0700 | [diff] [blame] | 24 | - SCHEME="HelloWorld" |
| 25 | WORKSPACE="HelloWorld.xcworkspace" TEST_PATH="examples/objective-c/helloworld" |
| 26 | BUILD_ONLY="true" INTEROP_SERVER="false" |
| 27 | - SCHEME="RouteGuideClient" |
| 28 | WORKSPACE="RouteGuideClient.xcworkspace" TEST_PATH="examples/objective-c/route_guide" |
| 29 | BUILD_ONLY="true" INTEROP_SERVER="false" |
| 30 | - SCHEME="AuthSample" |
| 31 | WORKSPACE="AuthSample.xcworkspace" TEST_PATH="examples/objective-c/auth_sample" |
| 32 | BUILD_ONLY="true" INTEROP_SERVER="false" |
| 33 | - SCHEME="Sample" |
| 34 | WORKSPACE="Sample.xcworkspace" TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true" |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 35 | INTEROP_SERVER="false" |
Jorge Canizales | 10726f0 | 2016-07-15 23:25:47 -0700 | [diff] [blame] | 36 | - SCHEME="Sample" |
| 37 | WORKSPACE="Sample.xcworkspace" TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true" |
| 38 | INTEROP_SERVER="false" FRAMEWORKS="YES" |
Jorge Canizales | 8e42807 | 2016-07-15 23:25:08 -0700 | [diff] [blame] | 39 | - SCHEME="SwiftSample" |
| 40 | WORKSPACE="SwiftSample.xcworkspace" TEST_PATH="src/objective-c/examples/SwiftSample" |
| 41 | BUILD_ONLY="true" INTEROP_SERVER="false" |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 42 | before_install: |
Jorge Canizales | 7662870 | 2016-07-13 00:21:01 -0700 | [diff] [blame] | 43 | # Until Travis upgrades from Cocoapods 0.39, we need to do it here. |
Jorge Canizales | 44477d2 | 2016-05-20 11:06:04 -0700 | [diff] [blame] | 44 | - pod --version |
| 45 | - gem uninstall cocoapods -a |
Jorge Canizales | 34b0cd0 | 2016-07-12 11:44:35 -0700 | [diff] [blame] | 46 | - gem install cocoapods -v '1.0.1' |
Jorge Canizales | 44477d2 | 2016-05-20 11:06:04 -0700 | [diff] [blame] | 47 | - pod --version |
Jorge Canizales | 7662870 | 2016-07-13 00:21:01 -0700 | [diff] [blame] | 48 | # Recent pods aren't found if we don't explicitly update Cocoapods' repo. |
| 49 | - pod repo update |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 50 | - brew install gflags |
Jorge Canizales | bda3476 | 2015-10-28 03:48:42 -0700 | [diff] [blame] | 51 | install: |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 52 | - pushd $TEST_PATH |
Jorge Canizales | eba2b1c | 2016-05-20 11:06:33 -0700 | [diff] [blame] | 53 | - pod install |
Jorge Canizales | bda3476 | 2015-10-28 03:48:42 -0700 | [diff] [blame] | 54 | - popd |
Jorge Canizales | 227c9b2 | 2015-10-28 02:23:15 -0700 | [diff] [blame] | 55 | before_script: |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 56 | - if [ "${INTEROP_SERVER}" = "true" ]; then |
| 57 | make interop_server; |
| 58 | (bins/$CONFIG/interop_server --port=5050 &); |
| 59 | (bins/$CONFIG/interop_server --port=5051 --use_tls &); |
| 60 | fi |
| 61 | script: |
| 62 | - if [ "${BUILD_ONLY}" = "true" ]; then |
| 63 | xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" |
Yuchen Zeng | b34608e | 2016-06-28 12:22:25 -0700 | [diff] [blame] | 64 | -sdk iphonesimulator9.3 build; |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 65 | else |
| 66 | xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME" |
Yuchen Zeng | b34608e | 2016-06-28 12:22:25 -0700 | [diff] [blame] | 67 | -sdk iphonesimulator9.3 test; |
Yuchen Zeng | d4824d3 | 2016-06-27 10:31:53 -0700 | [diff] [blame] | 68 | fi |
Nicolas "Pixel" Noble | 9f1baf7 | 2015-02-26 18:50:03 +0100 | [diff] [blame] | 69 | notifications: |
Nicolas "Pixel" Noble | d30b005 | 2015-03-03 04:30:00 +0100 | [diff] [blame] | 70 | email: false |