-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (42 loc) · 1.09 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: generic
sudo: required
dist: trusty
osx_image: xcode8
env:
global:
- LC_CTYPE=en_US.UTF-8
branches:
only:
- master
matrix:
include:
- env: JOB=swiftpm_linux
os: linux
script:
- swift build
- SWIFT_PATH=`which swift` swift test
- env: JOB=swiftpm_macos
os: osx
script:
- swift build
- swift test
- env: JOB=xcode
os: osx
script:
- swift build
- swift package generate-xcodeproj
- xcodebuild build-for-testing test-without-building -workspace SwiftRunner.xcworkspace -scheme SwiftRunner -sdk macosx -configuration Release -enableCodeCoverage YES ENABLE_TESTABILITY=YES | xcpretty
install:
- if [ `uname` == "Linux" ] ; then
curl -sL https://gist.github.com/kylef/5c0475ff02b7c7671d2a/raw/621ef9b29bbb852fdfd2e10ed147b321d792c1e4/swiftenv-install.sh | bash ;
. ~/.swiftenv/init;
swiftenv install 3.0 || true;
fi
after_success:
- |
if [ "$JOB" == "xcode" ]; then
bash <(curl -s https://codecov.io/bash)
fi
sleep 10
notifications:
email: false