forked from ReactiveCocoa/ReactiveCocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.95 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
language: objective-c
osx_image: xcode9
before_install:
- brew uninstall carthage
- HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/6ae4f69a652fb0ecb102b0c9216378679a4f1b92/Formula/carthage.rb # 0.22.0
install: true
branches:
only:
- master
- /^(\d+\.\d+\.\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/
- /^hotfix-(\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
jobs:
include:
- stage: unit tests
osx_image: xcode9
script:
- XCODE_SCHEME=ReactiveCocoa-macOS
XCODE_SDK=macosx
XCODE_ACTION="build test"
XCODE_DESTINATION="arch=x86_64"
XCODE_PLAYGROUND_TARGET="x86_64-apple-macosx10.10"
PLAYGROUND="ReactiveCocoa-macOS.playground"
script/build
- XCODE_SCHEME=ReactiveCocoa-iOS
XCODE_SDK=iphonesimulator
XCODE_ACTION="build-for-testing test-without-building"
XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 6s"
script/build
- XCODE_SCHEME=ReactiveCocoa-tvOS
XCODE_SDK=appletvsimulator
XCODE_ACTION="build-for-testing test-without-building"
XCODE_DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p"
script/build
- XCODE_SCHEME=ReactiveCocoa-watchOS
XCODE_SDK=watchsimulator
XCODE_ACTION=build
XCODE_DESTINATION="platform=watchOS Simulator,name=Apple Watch - 38mm,OS=2.2"
script/build
- stage: package manager tests
script:
- gem install cocoapods
- pod repo update
- pod lib lint ReactiveCocoa.podspec
- pod lib lint ReactiveMapKit.podspec --swift-version=3.2
env:
- JOB=PODSPEC
- script: carthage build --cache-builds --no-skip-current