This repository was archived by the owner on Dec 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
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
649cfde
commit 2300d94
Showing
1 changed file
with
26 additions
and
23 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,26 +1,29 @@ | ||
language: generic | ||
osx_image: xcode8 | ||
os: | ||
- linux | ||
sudo: required | ||
dist: trusty | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install carthage ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then carthage bootstrap ; fi | ||
install: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi | ||
matrix: | ||
include: | ||
# Test Ubuntu Linux 16.04 / Swift 5.2 | ||
- os: linux | ||
dist: xenial | ||
sudo: required | ||
env: | ||
- SWIFT_VERSION=swift-5.2.2-RELEASE | ||
- SWIFT_URL=https://swift.org/builds/swift-5.2.2-release/ubuntu1604/swift-5.2.2-RELEASE/swift-5.2.2-RELEASE-ubuntu16.04.tar.gz | ||
install: | ||
- export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu16.04/usr/bin:"${PATH}" | ||
# Test Xcode 11.4 / Swift 5.2.2 | ||
- os: osx | ||
osx_image: xcode11.4 | ||
addons: | ||
apt: | ||
packages: | ||
- clang | ||
- pkg-config | ||
script: | ||
# Setup Linux environment | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang uuid-dev libjson-c-dev ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang ; fi | ||
- 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/development/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
env: | ||
- SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-08-04-a | ||
script: | ||
- uname | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool test -project Xcode/SwiftFoundation.xcodeproj -scheme "SwiftFoundation OS X" -sdk macosx ONLY_ACTIVE_ARCH=NO ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool build -project Xcode/SwiftFoundation.xcodeproj -scheme "SwiftFoundation iOS" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO ; fi | ||
|
||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then swift build ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then .build/debug/UnitTests ; fi | ||
|
||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl $SWIFT_URL -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
# Run Unit Tests | ||
- swift test |