-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
29 lines (29 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: generic
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 ; 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