-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
67 lines (64 loc) · 1.74 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
os: osx
language: swift
osx_image: xcode10.2
branches:
only:
- master
stages:
- lint
- carthage
- test
jobs:
include:
- &pod
stage: lint
osx_image: xcode9.4
env: SWIFT=3.3
before_install:
gem install cocoapods --prerelease --version 1.7.0.beta.3
install:
carthage bootstrap --no-build PromiseKit
script: |
cd Carthage/Checkouts/PromiseKit
mv .github/PromiseKit.podspec .
rm -rf Extensions/HomeKit/Sources
cp -R ../../../Sources Extensions/HomeKit
pod lib lint --subspec=PromiseKit/HomeKit --fail-fast --swift-version=$SWIFT
- <<: *pod
osx_image: xcode10.1
env: SWIFT=3.4
- <<: *pod
osx_image: xcode9.4
env: SWIFT=4.1
- <<: *pod
osx_image: xcode10.1
env: SWIFT=4.2
- <<: *pod
osx_image: xcode10.2
env: SWIFT=5.0
- &carthage
stage: carthage
osx_image: xcode9.4
script: |
carthage bootstrap --cache-builds
sed -i '' "s/SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;/SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;/" *.xcodeproj/project.pbxproj
carthage build --no-skip-current
cache.directories:
- Carthage
- <<: *carthage
osx_image: xcode10.1
- <<: *carthage
osx_image: xcode10.2
- &test
stage: test
xcode_scheme: PMKHomeKit
xcode_project: PMKHomeKit.xcodeproj
xcode_destination: 'platform=iOS Simulator,OS=12.2,name=iPhone SE'
cache.directories:
- Carthage
before_install:
carthage bootstrap --cache-builds --no-use-binaries
after_success:
bash <(curl -s https://codecov.io/bash);
- <<: *test
xcode_destination: 'platform=tvOS Simulator,OS=12.2,name=Apple TV'