-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (36 loc) · 1.08 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
os: osx
osx_image: xcode11
git:
depth: 1
branches:
only:
- master
cache:
directories:
- vendor/bundle
- Pods
env:
global:
- WORKSPACE="Tapster iOS Demo.xcworkspace"
- SCHEME="Tapster iOS Demo"
matrix:
- DESTINATION="OS=13.0,name=iPhone XS Max" LINTING="YES"
- DESTINATION="OS=12.2,name=iPhone XS" LINTING="NO"
- DESTINATION="OS=11.4,name=iPhone X" LINTING="NO"
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" LINTING="NO"
install:
- bundle install --path vendor/bundle
# Update the CocoaPods master repo so that latest Pod beta versions can be found.
# TODO: remove this command when these dependencies go out of beta.
- pod repo update
- pod install
script:
- set -eo pipefail
# Linting with SwiftLint
- if [ $LINTING == "YES" ]; then
echo "SwiftLint version `swiftlint version`";
echo "SwiftLint linting...";
swiftlint lint --strict;
fi
# Build in Debug
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty