forked from Sorix/CloudCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (30 loc) · 1.2 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
osx_image: xcode9.2
language: objective-c
podfile: "Example/Podfile"
branches:
only:
- master
env:
- DESTINATION='platform=OS X' POD_LINT="YES"
- DESTINATION='platform=iOS Simulator,name=iPhone 6S' BUILD_EXAMPLE="YES"
- DESTINATION='platform=watchOS Simulator,name=Apple Watch - 38mm' SKIP_TEST="YES"
- DESTINATION='platform=tvOS Simulator,name=Apple TV 4K'
before_install:
- gem install xcpretty-travis-formatter
script:
- set -o pipefail
- xcodebuild -scheme CloudCore -destination "$DESTINATION" build | xcpretty -f `xcpretty-travis-formatter`
- if [ "$SKIP_TEST" != "YES" ]; then
xcodebuild -scheme CloudCore -destination "$DESTINATION" test | xcpretty -f `xcpretty-travis-formatter`;
fi
# Example
- if [ "$BUILD_EXAMPLE" = "YES" ]; then
xcodebuild -workspace "Example/CloudCoreExample.xcworkspace" -scheme "CloudCoreExample" -destination "$DESTINATION" build | xcpretty -f `xcpretty-travis-formatter`;
fi
- if [ "$POD_LINT" = "YES" ]; then
pod lib lint --allow-warnings;
fi
# Run release to master branch
- if [ "$POD_LINT" = "YES" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
pod spec lint --allow-warnings;
fi