.travis.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. jobs:
  18. include:
  19. # Tests for each PR.
  20. - &tests
  21. stage: "Test"
  22. name: "Ubuntu 18.04 (Swift 5.1)"
  23. os: linux
  24. dist: bionic
  25. script: ./.travis-script.sh
  26. env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.1.2
  27. - <<: *tests
  28. name: "Ubuntu 18.04 (Swift 5.0)"
  29. env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.0.3
  30. - <<: *tests
  31. name: "Xcode 11.1 (Swift 5.1)"
  32. os: osx
  33. osx_image: xcode11.1
  34. - <<: *tests
  35. name: "Xcode 10.3 (Swift 5.0)"
  36. os: osx
  37. osx_image: xcode10.3
  38. # Interop Tests.
  39. - &interop_tests
  40. stage: "Interoperability Tests"
  41. # Linux
  42. name: "Ubuntu 18.04 (Swift 5.1)"
  43. os: linux
  44. dist: bionic
  45. script: ./.travis-script.sh
  46. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.1.2
  47. - <<: *interop_tests
  48. name: "Ubuntu 18.04 (Swift 5.0)"
  49. env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.0.3
  50. - <<: *interop_tests
  51. name: "Xcode 11.1 (Swift 5.1)"
  52. os: osx
  53. osx_image: xcode11.1
  54. - <<: *interop_tests
  55. name: "Xcode 10.3 (Swift 5.0)"
  56. os: osx
  57. osx_image: xcode10.3
  58. stages:
  59. # Always run this stage.
  60. - name: "Test"
  61. # Only run when pushing (or merging) to nio.
  62. - name: "Interoperability Tests"
  63. if: type = push AND branch = nio
  64. cache:
  65. apt: true
  66. directories:
  67. - .build
  68. - $HOME/bin_cache
  69. sudo: false
  70. addons:
  71. apt:
  72. packages:
  73. - build-essential
  74. - curl
  75. - unzip
  76. - zip
  77. - pkg-config
  78. - g++
  79. - zlib1g-dev
  80. - python3
  81. before_install: ./scripts/license-check.sh
  82. install: ./.travis-install.sh
  83. script: ./.travis-script.sh