forked from khangtoh/facebook-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
118 lines (112 loc) · 3.85 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
113
114
115
116
117
118
language: objective-c
os: osx
env:
global:
# $api_key
- secure: vjVOdxnuHnkDiPXoddLycTQ2WwbYudHU53xbaz86Su0J+xTSNDmxmd2GFn45EMn5BixwVzTnLWhDg7EvNvQhHWDAuHUaK7X/KXoR41s3PzlucWtxczxxt3eIRtk7U4y22tSwr/r1cl6Q2QM5IK8ICZshhSyiHHEz/EAaodcJkUE=
- XCODE_WORKSPACE=FacebookSDK.xcworkspace
- GITHUB_ACCESS_TOKEN=$api_key
branches:
only:
- master
- 4.x-branch
- /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
stages:
- name: test
if: '! tag =~ /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/'
- name: release
if: tag =~ /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
- name: release cocoapods 1/3
if: tag =~ /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
- name: release cocoapods 2/3
if: tag =~ /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
- name: release cocoapods 3/3
if: tag =~ /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
- name: verify release
if: tag =~ /^v([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
jobs:
include:
- stage: test
name: Xcode - iOS 13
osx_image: xcode11
env:
- XCODE_SDK=iphonesimulator13.0
- XCODE_SCHEME=BuildAllKits
- stage: test
name: Xcode - tvOS 13
osx_image: xcode11
env:
- XCODE_SDK=appletvsimulator13.0
- XCODE_SCHEME=BuildAllKits_TV
- stage: test
name: Xcode - Release Config
osx_image: xcode11
script: sh scripts/run.sh release github static
- stage: test
name: Carthage
osx_image: xcode11
- stage: test
name: Pod Lint
osx_image: xcode11
script: sh scripts/run.sh lint cocoapods
- stage: test
name: Pod Lint Static
osx_image: xcode11
script: sh scripts/run.sh lint cocoapods --use-libraries
- stage: test
name: Swift Lint
osx_image: xcode11
script: sh scripts/run.sh lint swift
- stage: test
name: Verify Swift Package Headers
script: sh scripts/run.sh verify-spm-headers
- stage: test
name: Swift Package Integration Test
osx_image: xcode11.2
script: sh scripts/run.sh build spm-integration
- stage: test
name: Build Swift Packages
osx_image: xcode11.2
script: sh scripts/run.sh build spm
- stage: release
name: GitHub Release
osx_image: xcode11
script: sh scripts/run.sh release github
deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_ACCESS_TOKEN
file: build/Release/*
file_glob: true
name: Facebook SDK $TRAVIS_TAG
body: Consult Changelog $TRAVIS_TAG
on:
all_branches: true
tags: true
- stage: release cocoapods 1/3
name: Release Top Level Cocoapods
osx_image: xcode11
script: sh scripts/run.sh release cocoapods FBSDKCoreKit
- stage: release cocoapods 2/3
name: Release Dependent Cocoapods
osx_image: xcode11
script: sh scripts/run.sh release cocoapods FBSDKLoginKit FBSDKShareKit
- stage: release cocoapods 3/3
name: Release Dependent Cocoapods
osx_image: xcode11
script: sh scripts/run.sh release cocoapods FBSDKGamingServicesKit FBSDKTVOSKit
- stage: verify release
osx_image: xcode11.3
script: sh scripts/run.sh check-release-status
script: sh scripts/travis/script.sh
notifications: # set notification options
email:
on_success: change
on_failure: always
recipients:
# Enable webhooks later
# webhooks:
# on_failure: always