-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
97 lines (93 loc) · 2.33 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
os: osx
language: swift
osx_image: xcode10.2
branches:
only:
- master
stages:
- lint
- carthage
- swiftpm
- test
jobs:
include:
- &pod
stage: lint
osx_image: xcode8.3
env: SWIFT=3.1
cache:
- cocoapods
- directories:
- Carthage
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/Alamofire/Sources
cp -R ../../../Sources Extensions/Alamofire
pod lib lint --subspec=PromiseKit/Alamofire --fail-fast --swift-version=$SWIFT
- <<: *pod
osx_image: xcode9.2
env: SWIFT=3.2
- <<: *pod
osx_image: xcode9.4
env: SWIFT=3.3
- <<: *pod
osx_image: xcode10.1
env: SWIFT=3.4
- <<: *pod
osx_image: xcode9.2
env: SWIFT=4.0
- <<: *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=4.3
- <<: *pod
osx_image: xcode10.2
env: SWIFT=5.0
- &carthage
stage: carthage
osx_image: xcode9.2
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: xcode9.4
- <<: *carthage
osx_image: xcode10.1
- <<: *carthage
osx_image: xcode10.2
- &swiftpm
stage: swiftpm
osx_image: xcode8.3
script: swift build
- <<: *swiftpm
osx_image: xcode9.4
- <<: *swiftpm
osx_image: xcode10.1
- <<: *swiftpm
osx_image: xcode10.2
- &test
stage: test
xcode_scheme: PMKAlamofire
xcode_project: PMKAlamofire.xcodeproj
xcode_destination: 'platform=macOS'
cache.directories:
- Carthage
before_install:
carthage bootstrap --cache-builds --no-use-binaries
- <<: *test
xcode_destination: 'platform=iOS Simulator,OS=12.2,name=iPhone SE'
- <<: *test
xcode_destination: 'platform=tvOS Simulator,OS=12.2,name=Apple TV'