.travis.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #
  2. # Copyright 2017, gRPC Authors All rights reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # Travis CI build file for gRPC Swift.
  17. language: minimal
  18. jobs:
  19. include:
  20. # Tests for each PR.
  21. - &tests
  22. stage: "Test"
  23. name: "Unit Tests: Ubuntu 18.04 (Swift 5.2)"
  24. os: linux
  25. dist: bionic
  26. script: ./.travis-script.sh
  27. env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.2
  28. - <<: *tests
  29. name: "Unit Tests: Ubuntu 18.04 (Swift 5.1)"
  30. env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.1.5 NO_TSAN=true
  31. - <<: *tests
  32. name: "Unit Tests: Ubuntu 18.04 (Swift 5.0)"
  33. env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.0.3 NO_TSAN=true
  34. - <<: *tests
  35. name: "Unit Tests: Xcode 11.5"
  36. os: osx
  37. osx_image: xcode11.5
  38. - <<: *tests
  39. name: "Unit Tests: Xcode 11.4"
  40. os: osx
  41. osx_image: xcode11.4
  42. # Interop Tests.
  43. - &interop_tests
  44. stage: "Interoperability Tests"
  45. # Linux
  46. name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.2)"
  47. os: linux
  48. dist: bionic
  49. script: ./.travis-script.sh
  50. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.2
  51. - <<: *interop_tests
  52. name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.1)"
  53. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.1.5
  54. - <<: *interop_tests
  55. name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.0)"
  56. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.0.3
  57. - <<: *interop_tests
  58. name: "Interoperability Tests: Xcode 11.5"
  59. os: osx
  60. osx_image: xcode11.5
  61. - <<: *interop_tests
  62. name: "Interoperability Tests: Xcode 11.4"
  63. os: osx
  64. osx_image: xcode11.4
  65. allow_failures:
  66. # Swift Development builds are allowed to fail since they're pre-release.
  67. - <<: *development
  68. stages:
  69. # Always run this stage.
  70. - name: "Test"
  71. # Only run when pushing (or merging) to master
  72. - name: "Interoperability Tests"
  73. if: type = push AND branch = master
  74. cache:
  75. apt: true
  76. directories:
  77. - $HOME/bin_cache
  78. - $HOME/zip_cache
  79. addons:
  80. apt:
  81. packages:
  82. - build-essential
  83. - curl
  84. - unzip
  85. - zip
  86. - pkg-config
  87. - g++
  88. - zlib1g-dev
  89. - python3
  90. before_install: ./scripts/license-check.sh
  91. install: ./.travis-install.sh
  92. script: ./.travis-script.sh