This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
105 lines (87 loc) · 2.78 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
os: osx
osx_image: xcode11.3
rvm: 2.6.4
addons:
homebrew:
packages:
- swiftlint
update: true
cache:
- bundler
- pip
branches:
only:
- master
- develop
env:
global:
- PROJECT="JSQDataSourcesKit.xcodeproj"
- SCHEME="JSQDataSourcesKit"
- IOS_SDK=iphonesimulator13.2
- TVOS_SDK=appletvsimulator13.2
before_install:
- pip3 install proselint
- bundle update --bundler
- bundle install --without=documentation
jobs:
include:
- &test
stage: unit tests
name: iOS 11.1
env: DESTINATION="OS=11.1,name=iPhone X" SDK="$IOS_SDK"
script:
- set -o pipefail
- xcodebuild -version -sdk
- xcodebuild clean test -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c;
after_success:
- bundle exec danger
- bash <(curl -s https://codecov.io/bash)
- <<: *test
name: iOS 12.0
env: DESTINATION="OS=12.0,name=iPhone X" SDK="$IOS_SDK"
- <<: *test
name: iOS 13.2.2
env: DESTINATION="OS=13.2.2,name=iPhone 11" SDK="$IOS_SDK"
- <<: *test
name: tvOS 11.0
env: DESTINATION="OS=11.0,name=Apple TV" SDK="$TVOS_SDK"
- <<: *test
name: tvOS 12.0
env: DESTINATION="OS=12.0,name=Apple TV" SDK="$TVOS_SDK"
- <<: *test
name: tvOS 13.2
env: DESTINATION="OS=13.2,name=Apple TV" SDK="$TVOS_SDK"
- stage: ui tests
name: iOS 13.2.2
env: DESTINATION="OS=13.2.2,name=iPhone 11" SDK="$IOS_SDK"
script:
- set -o pipefail
- xcodebuild -version -sdk
- xcodebuild clean test -project Example/Example.xcodeproj -scheme Example -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c;
- &build-examples
stage: build examples
name: iOS 11.1
env: DESTINATION="OS=11.1,name=iPhone X" SDK="$IOS_SDK"
script:
- set -o pipefail
- xcodebuild -version -sdk
- xcodebuild clean build -project Example/Example.xcodeproj -scheme Example -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c;
- <<: *build-examples
name: iOS 12.0
env: DESTINATION="OS=12.0,name=iPhone X" SDK="$IOS_SDK"
- <<: *build-examples
name: iOS 13.2.2
env: DESTINATION="OS=13.2.2,name=iPhone 11" SDK="$IOS_SDK"
- stage: lint
name: pod lint
script: bundle exec pod lib lint
- stage: carthage
name: carthage
os: osx
script: carthage build --no-skip-current --configuration Release
stages:
- unit tests
- build examples
- lint
- carthage
- ui tests