|
|
@@ -15,47 +15,58 @@
|
|
|
#
|
|
|
# Travis CI build file for gRPC Swift.
|
|
|
|
|
|
+language: minimal
|
|
|
jobs:
|
|
|
include:
|
|
|
# Tests for each PR.
|
|
|
- &tests
|
|
|
stage: "Test"
|
|
|
- name: "Ubuntu 18.04 (Swift 5.1)"
|
|
|
+ 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.3
|
|
|
+ - &development
|
|
|
+ <<: *tests
|
|
|
+ name: "Unit Tests: Ubuntu 18.04 (Swift 5.2 Development Snapshot 2020-01-06)"
|
|
|
+ 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-01-06-a/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-01-06-a-ubuntu18.04.tar.gz
|
|
|
- <<: *tests
|
|
|
- name: "Ubuntu 18.04 (Swift 5.0)"
|
|
|
+ name: "Unit Tests: Ubuntu 18.04 (Swift 5.0)"
|
|
|
env: RUN_INTEROP_TESTS=false SWIFT_VERSION=5.0.3
|
|
|
- <<: *tests
|
|
|
- name: "Xcode 11.2 (Swift 5.1)"
|
|
|
+ name: "Unit Tests: Xcode 11.3 (Swift 5.1)"
|
|
|
os: osx
|
|
|
- osx_image: xcode11.2
|
|
|
+ osx_image: xcode11.3
|
|
|
- <<: *tests
|
|
|
- name: "Xcode 10.3 (Swift 5.0)"
|
|
|
+ name: "Unit Tests: Xcode 10.3 (Swift 5.0)"
|
|
|
os: osx
|
|
|
osx_image: xcode10.3
|
|
|
# Interop Tests.
|
|
|
- &interop_tests
|
|
|
stage: "Interoperability Tests"
|
|
|
# Linux
|
|
|
- name: "Ubuntu 18.04 (Swift 5.1)"
|
|
|
+ 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.3
|
|
|
- <<: *interop_tests
|
|
|
- name: "Ubuntu 18.04 (Swift 5.0)"
|
|
|
+ name: "Interoperability Tests: Ubuntu 18.04 (Swift 5.0)"
|
|
|
env: RUN_INTEROP_TESTS=true SWIFT_VERSION=5.0.3
|
|
|
- <<: *interop_tests
|
|
|
- name: "Xcode 11.2 (Swift 5.1)"
|
|
|
+ name: "Interoperability Tests: Xcode 11.3 (Swift 5.1)"
|
|
|
os: osx
|
|
|
- osx_image: xcode11.2
|
|
|
+ osx_image: xcode11.3
|
|
|
- <<: *interop_tests
|
|
|
- name: "Xcode 10.3 (Swift 5.0)"
|
|
|
+ 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.
|
|
|
@@ -70,8 +81,6 @@ cache:
|
|
|
- .build
|
|
|
- $HOME/bin_cache
|
|
|
|
|
|
-sudo: false
|
|
|
-
|
|
|
addons:
|
|
|
apt:
|
|
|
packages:
|