-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (37 loc) · 2.17 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
osx_image: xcode11
language: objective-c
#cache: cocoapods
podfile: Example/Podfile
if: type == pull_request OR tag IS present OR type == cron
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
- pod update --project-directory=Example
stages:
- name: test
- name: testKif
if: type == cron
- name: deploy cocoapod
if: tag =~ ^\d+\.\d+\.\d+$
jobs:
include:
- stage: test
name: Unit tests
script: set -o pipefail && xcodebuild clean build test -workspace Example/SygicMapsKit.xcworkspace -scheme SygicMapsKit_Tests -sdk iphonesimulator13.0 -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' -enableCodeCoverage YES ONLY_ACTIVE_ARCH=YES | xcpretty
# - stage: test
# name: UI tests - Browse map
# script: set -o pipefail && xcodebuild clean build test -workspace Example/SygicMapsKit.xcworkspace -scheme SygicMapsKit_ExampleUITests -sdk iphonesimulator12.1 -destination 'platform=iOS Simulator,name=iPhone X,OS=12.1' ONLY_ACTIVE_ARCH=NO -only-testing:SygicMapsKit_ExampleUITests/SygicMapsKit_ExampleUITests/testBrowseMapExamples CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
# - stage: test
# name: UI tests - Search
# script: set -o pipefail && xcodebuild clean build test -workspace Example/SygicMapsKit.xcworkspace -scheme SygicMapsKit_ExampleUITests -sdk iphonesimulator12.1 -destination 'platform=iOS Simulator,name=iPhone X,OS=12.1' ONLY_ACTIVE_ARCH=NO -only-testing:SygicMapsKit_ExampleUITests/SygicMapsKit_ExampleUITests/testSearchExamples CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- stage: testKif
name: UI KIF tests
script: set -o pipefail && xcodebuild clean build test -workspace Example/SygicMapsKit.xcworkspace -scheme SygicMapsKit_UITests -sdk iphonesimulator13.0 -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' -enableCodeCoverage YES ONLY_ACTIVE_ARCH=YES | xcpretty
- stage: deploy cocoapod
script: pod spec lint
deploy:
provider: script
script: pod trunk push --verbose --allow-warnings # | ruby -e 'ARGF.each{ print "." }'
on:
tags: true
all_branches: true