forked from PureSwift/Cairo
-
Notifications
You must be signed in to change notification settings - Fork 0
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
466b92f
commit 4819c9a
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: generic | ||
matrix: | ||
include: | ||
# Test Ubuntu Linux 16.04 / Swift 5 | ||
- os: linux | ||
dist: xenial | ||
sudo: required | ||
env: | ||
- SWIFT_VERSION=swift-5.0-RELEASE | ||
- SWIFT_URL=https://swift.org/builds/swift-5.0-release/ubuntu1604/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu16.04.tar.gz | ||
install: | ||
- export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu16.04/usr/bin:"${PATH}" | ||
# Test Xcode 10.2 / Swift 5 | ||
- os: osx | ||
osx_image: xcode10.2 | ||
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 ; 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 $SWIFT_URL -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi | ||
# Run Unit Tests | ||
- swift test |