-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfe8019
commit ad39aca
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
language: generic | ||
matrix: | ||
include: | ||
# Test Ubuntu Linux 14.04 / Swift 3.0.2 | ||
# Test Ubuntu Linux 14.04 / Swift 4.1.2 | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
# Test Xcode 8.3 / Swift 3.1.1 | ||
# Test Xcode 9.3 / Swift 4.1.0 | ||
- os: osx | ||
osx_image: xcode8.3 | ||
# Test Xcode 9.2 / Swift 3.2 - 4.0 | ||
osx_image: xcode9.3 | ||
# Test Xcode 9.4.1 / Swift 4.1.2 | ||
- os: osx | ||
osx_image: xcode9.2 | ||
osx_image: xcode9.4 | ||
# Test Xcode 10 / Swift 4.2 | ||
- os: osx | ||
osx_image: xcode10 | ||
# Test Xcode 10.2 / Swift 5 | ||
- os: osx | ||
osx_image: xcode10.2 | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- clang | ||
- pkg-config | ||
install: | ||
# Install Swift 3.0.2 on Ubuntu Linux 14.04 | ||
# Install Swift 4.1.2 on Ubuntu Linux 14.04 | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir $SWIFT_DIR ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/swift-3.0.2-release/ubuntu1404/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/swift-4.1.2-release/ubuntu1404/swift-4.1.2-RELEASE/swift-4.1.2-RELEASE-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang ; fi | ||
env: | ||
- SWIFT_VERSION=swift-3.0.2-RELEASE | ||
- SWIFT_VERSION=swift-4.1.2-RELEASE | ||
script: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi | ||
# Run Unit Tests | ||
# Compile with SPM | ||
- swift test | ||
# Compile with Xcode | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild clean test -scheme TLVCoding-macOS ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild clean build -scheme TLVCoding-iOS ; fi |