forked from facebook/facebook-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
119 lines (113 loc) · 3.46 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
119
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: tag
# 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+.-]+$)/
jobs:
include:
- stage: test
name: Xcode - iOS 12.2
osx_image: xcode10.2
env:
- XCODE_SDK=iphonesimulator12.2
- XCODE_SCHEME=BuildAllKits
- stage: test
name: Xcode - tvOS 12.2
osx_image: xcode10.2
env:
- XCODE_SDK=appletvsimulator12.2
- XCODE_SCHEME=BuildAllKits_TV
- stage: test
name: Xcode - iOS 11.4
osx_image: xcode9.4
env:
- XCODE_SDK=iphonesimulator11.4
- XCODE_SCHEME=BuildAllKits
- stage: test
name: Swift - Xcode 10.3
osx_image: xcode10.3
env:
- XCODE_SDK=iphonesimulator12.4
- XCODE_SCHEME=BuildAllSwiftKits
- stage: test
name: Carthage - Xcode 10.2
osx_image: xcode10.2
- stage: test
name: Pod Lint - Xcode 10.3
osx_image: xcode10.3
script: sh scripts/run.sh lint cocoapods --allow-warnings
- stage: test
name: Swift Lint
osx_image: xcode10.3
script: sh scripts/run.sh lint swift
# - stage: tag
# name: Tag Version
# osx_image: xcode10.2
# script: sh scripts/run.sh tag-current-version --push
- stage: test
name: Build Swift Packages
osx_image: xcode11.2
script: sh scripts/run.sh build spm
- stage: release
name: GitHub Release
osx_image: xcode10.1
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
name: GitHub Release Swift
osx_image: xcode10.3
script: sh scripts/run.sh release github swift
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
name: Publish Cocoapods
osx_image: xcode10.3
script: sh scripts/run.sh release cocoapods --allow-warnings
before_install: sh scripts/travis/before_install.sh
install: sh scripts/travis/install.sh
script: sh scripts/travis/script.sh
notifications: # set notification options
email:
on_success: change
on_failure: always
recipients:
- joesusnick@fb.com
- tianqibt@fb.com
- kylinchang@fb.com
# Enable webhooks later
# webhooks:
# on_failure: always