.travis.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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"
  23. os: linux
  24. dist: bionic
  25. script: ./.travis-script.sh
  26. env: RUN_INTEROP_TESTS=false
  27. - <<: *tests
  28. name: "macOS (Xcode 10.3)"
  29. os: osx
  30. osx_image: xcode10.3
  31. # Interop Tests.
  32. - &interop_tests
  33. stage: "Interoperability Tests"
  34. # Linux
  35. name: "Ubuntu 18.04"
  36. os: linux
  37. dist: bionic
  38. script: ./.travis-script.sh
  39. env: RUN_INTEROP_TESTS=true
  40. - <<: *interop_tests
  41. name: "macOS (Xcode 10.3)"
  42. os: osx
  43. osx_image: xcode10.3
  44. stages:
  45. # Always run this stage.
  46. - name: "Test"
  47. # Only run when pushing (or merging) to nio.
  48. - name: "Interoperability Tests"
  49. if: type = push AND branch = nio
  50. cache:
  51. apt: true
  52. directories:
  53. - .build
  54. - $HOME/bin_cache
  55. sudo: false
  56. addons:
  57. apt:
  58. packages:
  59. - build-essential
  60. - curl
  61. - unzip
  62. - zip
  63. - pkg-config
  64. - g++
  65. - zlib1g-dev
  66. - python3
  67. install: ./.travis-install.sh
  68. script: ./.travis-script.sh