| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #
- # Copyright 2017, gRPC Authors All rights reserved.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- #
- # Travis CI build file for gRPC Swift.
- language: minimal
- jobs:
- include:
- # Tests for each PR.
- - &tests
- stage: "Test"
- name: "Unit Tests: Ubuntu 18.04 (Swift 5.2)"
- os: linux
- dist: bionic
- script: ./.travis-script.sh
- env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.2
- - <<: *tests
- name: "Unit Tests: Ubuntu 18.04 (Swift 5.1)"
- env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.1.5 NO_TSAN=true
- - <<: *tests
- name: "Unit Tests: Ubuntu 18.04 (Swift 5.0)"
- env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.0.3 NO_TSAN=true
- - <<: *tests
- name: "Unit Tests: Xcode 11.5"
- os: osx
- osx_image: xcode11.5
- - <<: *tests
- name: "Unit Tests: Xcode 11.4"
- os: osx
- osx_image: xcode11.4
- # Interop Tests.
- - &interop_tests
- stage: "Interoperability Tests"
- # Linux
- name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.2)"
- os: linux
- dist: bionic
- script: ./.travis-script.sh
- env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.2
- - <<: *interop_tests
- name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.1)"
- env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.1.5
- - <<: *interop_tests
- name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.0)"
- env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.0.3
- - <<: *interop_tests
- name: "Interoperability Tests: Xcode 11.5"
- os: osx
- osx_image: xcode11.5
- - <<: *interop_tests
- name: "Interoperability Tests: Xcode 11.4"
- os: osx
- osx_image: xcode11.4
- allow_failures:
- # Swift Development builds are allowed to fail since they're pre-release.
- - <<: *development
- stages:
- # Always run this stage.
- - name: "Test"
- # Only run when pushing (or merging) to master
- - name: "Interoperability Tests"
- if: type = push AND branch = master
- cache:
- apt: true
- directories:
- - $HOME/bin_cache
- - $HOME/zip_cache
- addons:
- apt:
- packages:
- - build-essential
- - curl
- - unzip
- - zip
- - pkg-config
- - g++
- - zlib1g-dev
- - python3
- before_install: ./scripts/license-check.sh
- install: ./.travis-install.sh
- script: ./.travis-script.sh
|