blob: 94bf382b25ea7e04e4717a551004d5c25a599ee8 [file] [log] [blame]
Jorge Canizales1e6d1272016-07-13 00:25:18 -07001git:
2 depth: 1
Nicolas "Pixel" Noblede87e1c2015-09-25 22:21:38 +02003language: objective-c
Jorge Canizales0ee18c22016-05-20 11:06:58 -07004osx_image: xcode7.3
murgatroid997e14dd82015-02-27 15:06:03 -08005env:
murgatroid9923991602015-02-27 15:39:03 -08006 global:
Nicolas "Pixel" Noblede87e1c2015-09-25 22:21:38 +02007 - CONFIG=opt
8 - TEST=objc
9 - JOBS=1
Yuchen Zengd4824d32016-06-27 10:31:53 -070010 matrix:
Jorge Canizales8e428072016-07-15 23:25:08 -070011 - SCHEME="RxLibraryUnitTests"
12 WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
Yuchen Zeng431c8322016-06-28 12:16:34 -070013 INTEROP_SERVER="false"
Jorge Canizales8e428072016-07-15 23:25:08 -070014 - 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 Zengd4824d32016-06-27 10:31:53 -070019 INTEROP_SERVER="true"
Jorge Canizales34b0cd02016-07-12 11:44:35 -070020 # TODO(jcanizales): Make tests an app project (instead of library), so the following will work.
Jorge Canizales8e428072016-07-15 23:25:08 -070021 # - SCHEME="InteropTestsRemote"
22 # WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
Yuchen Zeng431c8322016-06-28 12:16:34 -070023 # INTEROP_SERVER="true"
Jorge Canizales8e428072016-07-15 23:25:08 -070024 - 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 Zengd4824d32016-06-27 10:31:53 -070035 INTEROP_SERVER="false"
Jorge Canizales10726f02016-07-15 23:25:47 -070036 - SCHEME="Sample"
37 WORKSPACE="Sample.xcworkspace" TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true"
38 INTEROP_SERVER="false" FRAMEWORKS="YES"
Jorge Canizales8e428072016-07-15 23:25:08 -070039 - SCHEME="SwiftSample"
40 WORKSPACE="SwiftSample.xcworkspace" TEST_PATH="src/objective-c/examples/SwiftSample"
41 BUILD_ONLY="true" INTEROP_SERVER="false"
Jorge Canizales227c9b22015-10-28 02:23:15 -070042before_install:
Jorge Canizales76628702016-07-13 00:21:01 -070043 # Until Travis upgrades from Cocoapods 0.39, we need to do it here.
Jorge Canizales44477d22016-05-20 11:06:04 -070044 - pod --version
45 - gem uninstall cocoapods -a
Jorge Canizales34b0cd02016-07-12 11:44:35 -070046 - gem install cocoapods -v '1.0.1'
Jorge Canizales44477d22016-05-20 11:06:04 -070047 - pod --version
Jorge Canizales76628702016-07-13 00:21:01 -070048 # Recent pods aren't found if we don't explicitly update Cocoapods' repo.
49 - pod repo update
Jorge Canizales227c9b22015-10-28 02:23:15 -070050 - brew install gflags
Jorge Canizalesbda34762015-10-28 03:48:42 -070051install:
Yuchen Zengd4824d32016-06-27 10:31:53 -070052 - pushd $TEST_PATH
Jorge Canizaleseba2b1c2016-05-20 11:06:33 -070053 - pod install
Jorge Canizalesbda34762015-10-28 03:48:42 -070054 - popd
Jorge Canizales227c9b22015-10-28 02:23:15 -070055before_script:
Yuchen Zengd4824d32016-06-27 10:31:53 -070056 - 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
61script:
62 - if [ "${BUILD_ONLY}" = "true" ]; then
63 xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME"
Yuchen Zengb34608e2016-06-28 12:22:25 -070064 -sdk iphonesimulator9.3 build;
Yuchen Zengd4824d32016-06-27 10:31:53 -070065 else
66 xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME"
Yuchen Zengb34608e2016-06-28 12:22:25 -070067 -sdk iphonesimulator9.3 test;
Yuchen Zengd4824d32016-06-27 10:31:53 -070068 fi
Nicolas "Pixel" Noble9f1baf72015-02-26 18:50:03 +010069notifications:
Nicolas "Pixel" Nobled30b0052015-03-03 04:30:00 +010070 email: false