-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
57 lines (57 loc) · 2.1 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
51
52
53
54
55
56
57
language: objective-c
osx_image: xcode10.2
dist: trusty
notifications:
email: false
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=SwiftLCS.xcworkspace
- IOS_FRAMEWORK_SCHEME="SwiftLCS iOS"
- OSX_FRAMEWORK_SCHEME="SwiftLCS OSX"
- TVOS_FRAMEWORK_SCHEME="SwiftLCS tvOS"
- WATCHOS_FRAMEWORK_SCHEME="SwiftLCS watchOS"
- IOS_SDK=iphonesimulator12.2
- OSX_SDK=macosx10.14
- TVOS_SDK=appletvsimulator12.2
- WATCHOS_SDK=watchsimulator5.2
- EXAMPLE_SCHEME="SwiftLCS Example"
- PODSPEC_PATH="SwiftLCS.podspec"
- SWIFTENV_ROOT="$HOME/.swiftenv"
- PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH"
matrix:
include:
- os: osx
env: DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" GENERATE_DOC="NO"
- os: osx
env: DESTINATION="OS=12.0,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" GENERATE_DOC="NO"
- os: osx
env: DESTINATION="OS=8.1,name=iPhone 5" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" GENERATE_DOC="NO"
- os: osx
env: DESTINATION="OS=12.0,name=Apple TV 4K" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" GENERATE_DOC="YES"
- os: osx
env: DESTINATION="arch=x86_64" SCHEME="$OSX_FRAMEWORK_SCHEME" SDK="$OSX_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" GENERATE_DOC="NO"
- os: linux
sudo: required
language: generic
before_install:
- .travis/install-cocoapods.sh
- .travis/install-jazzy.sh
install:
- .travis/install-swift.sh
script:
- .travis/build.sh debug "$SCHEME"
- .travis/build.sh release "$SCHEME"
- .travis/build-example.sh debug "$EXAMPLE_SCHEME"
- .travis/generate-docs.sh
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
local-dir: docs/
on:
branch: master
target-branch: gh-pages
condition: "$GENERATE_DOC = YES"