forked from ReactiveCocoa/ReactiveSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (104 loc) · 4.79 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
106
107
os: osx
language: objective-c
osx_image: xcode9.4
before_install: true
install: true
branches:
only:
- master
# Credit: @Omnikron13, https://github.com/mojombo/semver/issues/32
- /^(\d+\.\d+\.\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/
- /^(hotfix|release)(-|\/)(\d+\.\d+\.\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/
cache:
directories:
- $HOME/Library/Caches/org.carthage.CarthageKit/dependencies
- Carthage/Build
aliases:
- &xcode
script:
- XCODE_SCHEME=ReactiveSwift-macOS
XCODE_SDK=macosx
XCODE_ACTION="build test"
XCODE_DESTINATION="arch=x86_64"
script/build
- XCODE_SCHEME=ReactiveSwift-iOS
XCODE_SDK=iphonesimulator
XCODE_ACTION="build-for-testing test-without-building"
XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 6s"
script/build
- XCODE_SCHEME=ReactiveSwift-tvOS
XCODE_SDK=appletvsimulator
XCODE_ACTION="build-for-testing test-without-building"
XCODE_DESTINATION="platform=tvOS Simulator,name=Apple TV"
script/build
- XCODE_SCHEME=ReactiveSwift-watchOS
XCODE_SDK=watchsimulator
XCODE_ACTION=build
XCODE_DESTINATION="platform=watchOS Simulator,name=Apple Watch Series 3 - 38mm"
script/build
- &cocoapods
script:
# To work around the lint error: "ERROR | swift: Specification `ReactiveSwift` specifies an inconsistent `swift_version` (`4.1`) compared to the one present in your `.swift-version` file (`4.1.2`). Please remove the `.swift-version` file which is now deprecated and only use the `swift_version` attribute within your podspec."
# `.swift-version` is for swiftenv, not for CocoaPods, so we can't remove the file as suggested.
- rm .swift-version
- pod repo update --silent
- pod lib lint ReactiveSwift.podspec
env:
- JOB=PODSPEC
- &swiftpm
script:
- swift --version
- swift build
- swift test
git:
submodules: false
env: JOB=SwiftPM
- &swiftpm_darwin
<<: *swiftpm
- &swiftpm_linux
<<: *swiftpm
sudo: required
dist: trusty
os: linux
language: generic
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
matrix:
include:
- <<: *xcode
- <<: *xcode
osx_image: xcode10.1
- <<: *xcode
osx_image: xcode10.1
env: XCODE_ARGS="SWIFT_VERSION=4.2.1"
- <<: *cocoapods
- <<: *swiftpm_darwin
- <<: *swiftpm_darwin
osx_image: xcode10.1
- <<: *swiftpm_linux
- <<: *swiftpm_linux
env:
- JOB=SwiftPM
- SWIFT_VERSION=4.2.1
- <<: *swiftpm_linux
env:
- JOB=SwiftPM
- SWIFT_VERSION=5.0-DEVELOPMENT-SNAPSHOT-2019-01-27-a
- stage: carthage
script: carthage build --cache-builds --no-skip-current
- stage: deploy
script: skip
deploy:
provider: script
script: script/gen-docs
on:
repo: ReactiveCocoa/ReactiveSwift
tags: true
env:
- JOB=JAZZY_DOCS_GEN
- secure: "FZmWA8jEF1nNYEeolK+bDT/n+AJtQGa9/s5SXYg05Zs4GWReDimqo41y2UBJxdeaeixHab4N14sR5OL6R2pf4ZE0LVq4Ln17nsIPTRvMQeH74apJ/+d8y9pzQuyw8MsPeV9VwWAbhie+fjOKFEoqwo98junGJFFqNVKhZX3AdDgB50jNffEqzG7qedwHX5oM+Me8T7o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