forked from facebook/facebook-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
94 lines (80 loc) · 1.71 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
language: objective-c
os: osx
osx_image: xcode10
env:
global:
- SCRIPT_ENV=TRAVISCI
- XCODE_WORKSPACE=FacebookSDK.xcworkspace
matrix:
include:
- name: "iOS 12.0"
env:
- MATRIX_TYPE=Xcode
- XCODE_SDK=iphonesimulator12.0
- XCODE_SCHEME=BuildAllKits
- name: "tvOS 12.0"
env:
- MATRIX_TYPE=Xcode
- XCODE_SDK=appletvsimulator12.0
- XCODE_SCHEME=BuildAllKits_TV
- name: "iOS 11.0"
osx_image: xcode9.4
env:
- MATRIX_TYPE=Xcode
- XCODE_SDK=iphonesimulator11.4
- XCODE_SCHEME=BuildAllKits
- name: "Carthage Xcode 10"
env:
- MATRIX_TYPE=Carthage
branches:
only:
- master
before_install:
- echo "Will update Brew"
- brew update
install:
- echo "Will Bundle Brew"
- bundle install
- brew bundle
before_script:
- echo "Will start scripts"
script:
- echo "Did start scripts"
- echo "Env $SCRIPT_ENV $TEST_GLOBAL $MATRIX_TYPE $XCODE_SDK $XCODE_SCHEME $XCODE_DESTINATION"
- |
if [ "$MATRIX_TYPE" = Carthage ]; then
carthage build --no-skip-current
elif [ "$MATRIX_TYPE" = Xcode ]; then
xcodebuild build \
-workspace $XCODE_WORKSPACE \
-sdk $XCODE_SDK \
-scheme $XCODE_SCHEME \
-configuration Debug | \
xcpretty
fi
after_success:
- echo "Did succeed"
after_failure:
- echo "Did fail"
after_script:
- echo "Did complete scripts"
before_deploy:
- echo "Will deploy"
- test $TRAVIS_TEST_RESULT = 0
deploy:
- provider: script
script: echo "Should deploy"
on:
tags: true
branch: master
after_deploy:
- echo "Did deploy"
notifications: # set notification options
email:
on_success: change
on_failure: always
recipients:
# Enable webhooks later
# webhooks:
# on_failure: always