| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- language: objective-c
- osx_image: xcode7.3
- env:
- global:
- - CONFIG=opt
- - TEST=objc
- - JOBS=1
- matrix:
- - 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:
- # - 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"
- - SCHEME="Sample" WORKSPACE="Sample.xcworkspace"
- TEST_PATH="src/objective-c/examples/Sample" BUILD_ONLY="true"
- INTEROP_SERVER="false"
- - SCHEME="SwiftSample" WORKSPACE="SwiftSample.xcworkspace"
- TEST_PATH="src/objective-c/examples/SwiftSample" BUILD_ONLY="true"
- INTEROP_SERVER="false"
- before_install:
- - pod --version
- - gem uninstall cocoapods -a
- - gem install cocoapods -v '1.0.0'
- - pod --version
- - brew install gflags
- install:
- - make grpc_objective_c_plugin
- - 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:
- - 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 build;
- else
- xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME"
- -sdk iphonesimulator9.3 test;
- fi
- notifications:
- email: false
|