forked from bugsnag/bugsnag-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
112 lines (95 loc) · 3.4 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
language: objective-c
cache:
- bundler
- cocoapods
install: make bootstrap
env:
- TEST_CONFIGURATION=Debug
script: make test
stages:
- build
- macOS unit tests
- unit tests
- integration
- name: deploy
if: branch = master AND tag IS present
jobs:
include:
# ----------------------------------------------------------------------------
# Unit Tests - Mac
# ----------------------------------------------------------------------------
- osx_image: xcode10.2 # macos 10.14
name: macOS 10.14 unit tests
stage: macOS unit tests
env: PLATFORM=macOS
- osx_image: xcode9.4 # macos 10.13
name: macOS 10.13 unit tests
stage: macOS unit tests
env: PLATFORM=macOS
# ----------------------------------------------------------------------------
# Unit Tests - iOS
# ----------------------------------------------------------------------------
- osx_image: xcode11
name: iOS 13.x unit tests
stage: unit tests
# Xcode 11+ no longer ships with all device combinations premade
before_script: xcrun simctl create "13-xs" "iPhone XS" com.apple.CoreSimulator.SimRuntime.iOS-13-0
env:
- PLATFORM=iOS
- OS=13.0
- DEVICE="iPhone XS"
- osx_image: xcode10.2
name: iOS 9-12 unit tests
stage: unit tests
env: PLATFORM=iOS
before_script:
# https://stackoverflow.com/questions/55389080/xcode-10-2-failed-to-run-app-on-simulator-with-ios-10
- sudo mkdir -p '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'
script:
- make test OS=9.3
- make test OS=9.3 TEST_CONFIGURATION=Release
- make test OS=12.2
- make test OS=12.1
- make test OS=11.4
- make test OS=10.3.1
# ----------------------------------------------------------------------------
# Unit Tests - tvOS
# ----------------------------------------------------------------------------
- osx_image: xcode10.2
name: tvOS 9-12 unit tests
stage: unit tests
env: PLATFORM=tvOS
script:
- make test OS=12.2
- make test OS=12.1
- make test OS=11.4
- make test OS=10.2
- make test OS=9.2
# ----------------------------------------------------------------------------
# Static framework, Carthage and Swift Package Manager builds
# ----------------------------------------------------------------------------
- osx_image: xcode11
name: Static framework, Carthage and Swift Package Manager builds
stage: integration
before_script:
# Xcode 11+ no longer ships with all device combinations premade
- xcrun simctl create "13-xs" "iPhone XS" com.apple.CoreSimulator.SimRuntime.iOS-13-0
- mkdir -p features/fixtures/carthage-proj
script:
- make build_swift # Build with Swift Package Manager
- make build_carthage # Build example carthage project
- make build_ios_static # Build static framework target
# ----------------------------------------------------------------------------
# Doc Generation
# ----------------------------------------------------------------------------
- osx_image: xcode10.2
stage: deploy
before_deploy: make doc
script: skip
deploy:
provider: pages
local_dir: docs # only include the contents of the generated docs dir
skip_cleanup: true
github_token: $GITHUB_TOKEN # set in travis-ci dashboard
on:
tags: true # only deploy when tag is applied to commit