forked from MacPass/KeePassKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 892 Bytes
/
.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
osx_image: xcode11.6
xcode_project: KeePassKit.xcodeproj
language: objective-c
env:
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=macOS
- TEST_TYPE=tvOS
before_install:
- |
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = macOS ] || [ "$TEST_TYPE" = tvOS ]; then
carthage bootstrap --platform $TEST_TYPE
gem install xcpretty --no-document --quiet
fi
script:
- |
if [ "$TEST_TYPE" = iOS ]; then
set -o pipefail
xcodebuild test -scheme "KeePassKit iOS" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 8" | xcpretty -c
elif [ "$TEST_TYPE" = macOS ]; then
set -o pipefail
xcodebuild test -scheme "KeePassKit macOS" -sdk macosx | xcpretty -c
elif [ "$TEST_TYPE" = tvOS ]; then
set -o pipefail
xcodebuild test -scheme "KeePassKit tvOS" -sdk appletvsimulator -destination "platform=tvOS Simulator,name=Apple TV" | xcpretty -c
fi