Skip to content

Commit d6245a1

Browse files
committed
Added Linux testing to Travis.
1 parent b40da9d commit d6245a1

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

Diff for: .travis.yml

+27-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
language: objective-c
2-
osx_image: xcode9
3-
install:
4-
- gem install xcpretty
5-
script:
6-
- xcodebuild -scheme 'Docopt' clean build test | xcpretty -c
1+
matrix:
2+
include:
3+
- os: linux
4+
language: generic
5+
dist: trusty
6+
sudo: required
7+
env:
8+
- SWIFT_BRANCH=swift-4.1-branch
9+
- SWIFT_VERSION=swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-09-a
10+
install:
11+
- sudo apt-get install clang libicu-dev
12+
- mkdir swift
13+
- curl https://swift.org/builds/$SWIFT_BRANCH/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz -s | tar xz -C swift &> /dev/null
14+
- export PATH=$(pwd)/swift/$SWIFT_VERSION-ubuntu14.04/usr/bin:$PATH
15+
- swift package update
16+
script:
17+
- swift test
18+
19+
- os: osx
20+
language: objective-c
21+
osx_image: xcode9
22+
install:
23+
- gem install xcpretty
24+
script:
25+
- xcodebuild -scheme 'Docopt' clean build test | xcpretty -c
26+
27+
728
notifications:
829
email: false

0 commit comments

Comments
 (0)