forked from kylef/JSONWebToken.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (41 loc) · 1.23 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
os:
- osx
- linux
osx_image: xcode9
language: generic
sudo: required
dist: trusty
env:
global:
- SWIFT_VERSION=4.0
matrix:
- SWIFTPM_BUILD=true
- SWIFTPM_TEST=true
- XCODE_TEST_SDK=macosx
- XCODE_BUILD_SDK=iphonesimulator
- XCODE_BUILD_SDK=appletvsimulator
- XCODE_BUILD_SDK=watchsimulator
matrix:
exclude:
# No need to build and test on macOS
- os: osx
env: SWIFTPM_BUILD=true
# LinuxMain.swift is out of sync
- os: linux
env: SWIFTPM_TEST=true
- 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_BUILD" ]; then swift build; fi
- 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