forked from JeaSungLEE/SegementSlide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (38 loc) · 1.7 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
43
language: swift
os: osx
osx_image: xcode10.1
env: SWIFT_SNAPSHOT=4.2
cache:
directories:
- cocoapods
podfile: ./Podfile
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
matrix:
- SCHEME=Example
- SCHEME=ExampleTests
- SCHEME=SegementSlide-Dynamic
- SCHEME=SegementSlide-Dynamic-Tests
before_install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
- pod repo update
- pod install
script:
- |
set -o pipefail;
if [ "$SCHEME" = Example ]; then
xcodebuild clean test -workspace Example.xcworkspace -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
elif [ "$SCHEME" = ExampleTests ]; then
xcodebuild clean test -workspace Example.xcworkspace -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
elif [ "$SCHEME" = SegementSlide-Dynamic ]; then
xcodebuild clean test -project SegementSlide.xcodeproj -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
elif [ "$SCHEME" = SegementSlide-Dynamic-Tests ]; then
xcodebuild clean test -project SegementSlide.xcodeproj -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
fi
- pod lib lint --allow-warnings
after_success:
- sleep 3
- bash <(curl -s https://codecov.io/bash)