-
Notifications
You must be signed in to change notification settings - Fork 161
/
.travis.yml
42 lines (37 loc) · 1.6 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: xcode11.7
env: SWIFT_SNAPSHOT=5.2.4
cache:
directories:
- cocoapods
podfile: ./Podfile
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
matrix:
- SCHEME=SegementSlide-Dynamic
- SCHEME=SegementSlide-Dynamic-Tests
- SCHEME=Example
- SCHEME=ExampleTests
before_install:
- gem install cocoapods -v '1.9.3'
- pod repo update
- pod install
script:
- |
set -o pipefail;
if [ "$SCHEME" = SegementSlide-Dynamic ]; then
xcodebuild clean test -project SegementSlide.xcodeproj -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' -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 X,OS=12.2' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
elif [ "$SCHEME" = Example ]; then
xcodebuild clean test -workspace Example.xcworkspace -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' -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 X,OS=12.2' -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)