.travis.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.4 (Swift 5.2)"
  36. os: osx
  37. osx_image: xcode11.4
  38. - <<: *tests
  39. name: "Unit Tests: Xcode 11.3 (Swift 5.1)"
  40. os: osx
  41. osx_image: xcode11.3
  42. env: NO_TSAN=true
  43. - <<: *tests
  44. name: "Unit Tests: Xcode 10.3 (Swift 5.0)"
  45. os: osx
  46. osx_image: xcode10.3
  47. env: NO_TSAN=true
  48. # Interop Tests.
  49. - &interop_tests
  50. stage: "Interoperability Tests"
  51. # Linux
  52. name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.2)"
  53. os: linux
  54. dist: bionic
  55. script: ./.travis-script.sh
  56. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.2
  57. - <<: *interop_tests
  58. name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.1)"
  59. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.1.5
  60. - <<: *interop_tests
  61. name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.0)"
  62. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.0.3
  63. - <<: *interop_tests
  64. name: "Interoperability Tests: Xcode 11.4 (Swift 5.2)"
  65. os: osx
  66. osx_image: xcode11.4
  67. - <<: *interop_tests
  68. name: "Interoperability Tests: Xcode 11.3 (Swift 5.1)"
  69. os: osx
  70. osx_image: xcode11.3
  71. - <<: *interop_tests
  72. name: "Interoperability Tests: Xcode 10.3 (Swift 5.0)"
  73. os: osx
  74. osx_image: xcode10.3
  75. allow_failures:
  76. # Swift Development builds are allowed to fail since they're pre-release.
  77. - <<: *development
  78. stages:
  79. # Always run this stage.
  80. - name: "Test"
  81. # Only run when pushing (or merging) to master
  82. - name: "Interoperability Tests"
  83. if: type = push AND branch = master
  84. cache:
  85. apt: true
  86. directories:
  87. - $HOME/bin_cache
  88. - $HOME/zip_cache
  89. addons:
  90. apt:
  91. packages:
  92. - build-essential
  93. - curl
  94. - unzip
  95. - zip
  96. - pkg-config
  97. - g++
  98. - zlib1g-dev
  99. - python3
  100. before_install: ./scripts/license-check.sh
  101. install: ./.travis-install.sh
  102. script: ./.travis-script.sh