.travis.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. language: objective-c
  2. osx_image: xcode7.3
  3. env:
  4. global:
  5. - CONFIG=opt
  6. - TEST=objc
  7. - JOBS=1
  8. matrix:
  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"
  16. INTEROP_SERVER="true"
  17. # TODO(jcanizales): Investigate why they time out:
  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"
  23. INTEROP_SERVER="false"
  24. - SCHEME="RouteGuideClient" WORKSPACE="RouteGuideClient.xcworkspace"
  25. TEST_PATH="examples/objective-c/route_guide" BUILD_ONLY="true"
  26. INTEROP_SERVER="false"
  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"
  35. INTEROP_SERVER="false"
  36. before_install:
  37. - pod --version
  38. - gem uninstall cocoapods -a
  39. - gem install cocoapods -v '1.0.0'
  40. - pod --version
  41. - brew install gflags
  42. install:
  43. - make grpc_objective_c_plugin
  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
  47. - pod install
  48. - popd
  49. before_script:
  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 build;
  59. else
  60. xctool -workspace "$TEST_PATH/$WORKSPACE" -scheme "$SCHEME"
  61. -sdk iphonesimulator9.3 test;
  62. fi
  63. notifications:
  64. email: false