Skip to content

Commit ad39aca

Browse files
committed
Updated CI
1 parent cfe8019 commit ad39aca

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.travis.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
language: generic
22
matrix:
33
include:
4-
# Test Ubuntu Linux 14.04 / Swift 3.0.2
4+
# Test Ubuntu Linux 14.04 / Swift 4.1.2
55
- os: linux
66
dist: trusty
77
sudo: required
8-
# Test Xcode 8.3 / Swift 3.1.1
8+
# Test Xcode 9.3 / Swift 4.1.0
99
- os: osx
10-
osx_image: xcode8.3
11-
# Test Xcode 9.2 / Swift 3.2 - 4.0
10+
osx_image: xcode9.3
11+
# Test Xcode 9.4.1 / Swift 4.1.2
1212
- os: osx
13-
osx_image: xcode9.2
13+
osx_image: xcode9.4
14+
# Test Xcode 10 / Swift 4.2
15+
- os: osx
16+
osx_image: xcode10
17+
# Test Xcode 10.2 / Swift 5
18+
- os: osx
19+
osx_image: xcode10.2
20+
1421
addons:
1522
apt:
1623
packages:
1724
- clang
1825
- pkg-config
1926
install:
20-
# Install Swift 3.0.2 on Ubuntu Linux 14.04
27+
# Install Swift 4.1.2 on Ubuntu Linux 14.04
2128
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi
2229
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir $SWIFT_DIR ; fi
23-
- 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
30+
- 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
2431
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
2532
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang ; fi
2633
env:
27-
- SWIFT_VERSION=swift-3.0.2-RELEASE
34+
- SWIFT_VERSION=swift-4.1.2-RELEASE
2835
script:
2936
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi
30-
# Run Unit Tests
37+
# Compile with SPM
3138
- swift test
3239
# Compile with Xcode
40+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode ; fi
3341
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild clean test -scheme TLVCoding-macOS ; fi
3442
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild clean build -scheme TLVCoding-iOS ; fi

0 commit comments

Comments
 (0)