| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #
- # 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.1)"
- os: linux
- dist: bionic
- script: ./.travis-script.sh
- env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.1.4
- - &development
- <<: *tests
- name: "Unit Tests: Ubuntu 18.04 (Swift 5.2 Development Snapshot 2020-03-03)"
- env: >-
- RUN_INTEROP_TESTS=false
- SWIFT_VERSION=5.2
- SWIFT_URL=https://swift.org/builds/swift-5.2-branch/ubuntu1804/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-03-a/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-03-a-ubuntu18.04.tar.gz
- - <<: *tests
- name: "Unit Tests: Ubuntu 18.04 (Swift 5.0)"
- env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.0.3
- - <<: *tests
- name: "Unit Tests: Xcode 11.3 (Swift 5.1)"
- os: osx
- osx_image: xcode11.3
- - <<: *tests
- name: "Unit Tests: Xcode 10.3 (Swift 5.0)"
- os: osx
- osx_image: xcode10.3
- # Interop Tests.
- - &interop_tests
- stage: "Interoperability Tests"
- # Linux
- name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.1)"
- os: linux
- dist: bionic
- script: ./.travis-script.sh
- env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.1.4
- - <<: *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.3 (Swift 5.1)"
- os: osx
- osx_image: xcode11.3
- - <<: *interop_tests
- name: "Interoperability Tests: Xcode 10.3 (Swift 5.0)"
- os: osx
- osx_image: xcode10.3
- 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 nio.
- - name: "Interoperability Tests"
- if: type = push AND branch = nio
- cache:
- apt: true
- directories:
- - .build
- - $HOME/bin_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
|