-
Notifications
You must be signed in to change notification settings - Fork 225
/
.travis.yml
38 lines (34 loc) · 1.03 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
os:
- osx
- linux
osx_image: xcode9.4
language: generic
sudo: required
dist: trusty
env:
global:
- SWIFT_VERSION=4.0
- SWIFT_VERSION=4.1.2
matrix:
- SWIFTPM_TEST=true
- XCODE_TEST_SDK=macosx
- XCODE_BUILD_SDK=iphonesimulator
- XCODE_BUILD_SDK=appletvsimulator
- XCODE_BUILD_SDK=watchsimulator
matrix:
exclude:
- os: linux
env: XCODE_TEST_SDK=macosx
- os: linux
env: XCODE_BUILD_SDK=iphonesimulator
- os: linux
env: XCODE_BUILD_SDK=appletvsimulator
- os: linux
env: XCODE_BUILD_SDK=watchsimulator
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
script:
- if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
- if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
- if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
- if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi