forked from bugsnag/bugsnag-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
86 lines (81 loc) · 2.33 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
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:
- 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
script:
- make test OS=12.2
- make test OS=12.1
- make test OS=11.4
- make test OS=10.3.1
- make test OS=9.3
- make test OS=9.3 TEST_CONFIGURATION=Release
- osx_image: xcode10.2 # macos 10.14
name: macOS 10.14 unit tests
stage: macOS unit tests
env: PLATFORM=OSX
- osx_image: xcode9.4 # macos 10.13
name: macOS 10.13 unit tests
stage: macOS unit tests
env: PLATFORM=OSX
- 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
- osx_image: xcode10.1
stage: integration
name: End-to-end tests
script: bundle exec maze-runner -c --verbose || (cat maze_output/* && exit 1)
env: MAZE_SDK=12.1 SDK=iphonesimulator12.1 RUBYSHELL=/bin/bash
- osx_image: xcode11
name: Building static framework and Carthage integration
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_carthage # Build example carthage project
- make build_ios_static # Build static framework target
- 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