-
Notifications
You must be signed in to change notification settings - Fork 99
/
.travis.yml
42 lines (37 loc) · 1.57 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
language: swift
os: osx
osx_image: xcode9.2
branches:
only:
- master
env:
global:
- WORKSPACE=Evil.xcworkspace
- IOS_FRAMEWORK_SCHEME="Evil iOS"
- MACOS_FRAMEWORK_SCHEME="Evil macOS"
- EXAMPLE_SCHEME="iOS Example"
- TOOLS_SCHEME="PrepareBot"
matrix:
- DESTINATION="OS=11.1,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" BUILD_TOOLS="NO" BUILD_EXAMPLE="YES" POD_LINT="YES"
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" BUILD_TOOLS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
before_install:
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# Debug
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
# Release
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
# Build Example in Debug if specified
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
fi
- if [ $BUILD_TOOLS == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$TOOLS_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty;
fi
# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
pod lib lint;
fi