-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (45 loc) · 1.41 KB
/
.travis.yml
File metadata and controls
49 lines (45 loc) · 1.41 KB
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
osx_image: xcode10.2
language: objective-c
sudo: required
env:
global:
- PROJECT="SectionReactor.xcodeproj"
- SCHEME="SectionReactor-Package"
- IOS_SDK="iphonesimulator12.2"
- TVOS_SDK="appletvsimulator12.2"
matrix:
- SDK="$IOS_SDK" TEST=1 DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=12.2"
- SDK="$TVOS_SDK" TEST=1 DESTINATION="OS=12.2,name=Apple TV 4K"
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
- swift --version
before_script:
- set -o pipefail
- if [ $TEST == 1 ]; then
TEST=1 swift package generate-xcodeproj;
else
swift package generate-xcodeproj;
fi
script:
- if [ $TEST == 1 ]; then
xcodebuild clean build test
-project "$PROJECT"
-scheme "$SCHEME"
-sdk "$SDK"
-destination "$DESTINATION"
-configuration Debug
-enableCodeCoverage YES
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
else
xcodebuild clean build
-project "$PROJECT"
-scheme "$SCHEME"
-sdk "$SDK"
-destination "$DESTINATION"
-configuration Debug
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
fi
after_success:
- if [ $TEST == 1 ]; then
bash <(curl -s https://codecov.io/bash) -X xcodeplist -J 'SectionReactor';
fi