forked from ReactorKit/ReactorKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (56 loc) · 2.57 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
osx_image: xcode9.3
language: objective-c
sudo: required
env:
global:
- PROJECT="ReactorKit.xcodeproj"
- SCHEME="ReactorKit-Package"
- IOS_SDK="iphonesimulator11.3"
- MACOS_SDK="macosx10.13"
- TVOS_SDK="appletvsimulator11.3"
- FRAMEWORK="ReactorKit"
matrix:
- SDK="$IOS_SDK" DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.3"
- SDK="$MACOS_SDK" DESTINATION="arch=x86_64"
- SDK="$TVOS_SDK" DESTINATION="OS=11.3,name=Apple TV 4K"
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
- swift --version
- bundle install
before_script:
- set -o pipefail
- swift package generate-xcodeproj
script:
- xcodebuild clean build test
-project "$PROJECT"
-scheme "$SCHEME"
-sdk "$SDK"
-destination "$DESTINATION"
-configuration Debug
-enableCodeCoverage YES
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash) -X xcodeplist -J 'ReactorKit';
before_deploy:
- bundle exec swiftproj generate-xcconfig --podspec ReactorKit.podspec
- bundle exec swiftproj generate-xcodeproj --xcconfig-overrides Config.xcconfig
- bundle exec swiftproj configure-scheme --project ReactorKit.xcodeproj --scheme ReactorKit-Package --buildable-targets ReactorKit,ReactorKitRuntime
- bundle exec swiftproj remove-framework --project ReactorKit.xcodeproj --target ReactorKit --framework RxBlocking.framework
- bundle exec swiftproj remove-framework --project ReactorKit.xcodeproj --target ReactorKit --framework RxCocoa.framework
- bundle exec swiftproj remove-framework --project ReactorKit.xcodeproj --target ReactorKit --framework RxCocoaRuntime.framework
- bundle exec swiftproj remove-framework --project ReactorKit.xcodeproj --target ReactorKitRuntime --framework RxBlocking.framework
- bundle exec swiftproj remove-framework --project ReactorKit.xcodeproj --target ReactorKitRuntime --framework RxCocoa.framework
- bundle exec swiftproj remove-framework --project ReactorKit.xcodeproj --target ReactorKitRuntime --framework RxCocoaRuntime.framework
- rm -rf Examples # https://github.com/Carthage/Carthage/issues/1974
- carthage bootstrap
- carthage build --no-skip-current --verbose | xcpretty -c
- carthage archive ReactorKit ReactorKitRuntime
deploy:
provider: releases
api_key: $GITHUB_ACCESS_TOKEN
file: "$FRAMEWORK.framework.zip"
skip_cleanup: true
on:
repo: ReactorKit/ReactorKit
tags: true
condition: $SDK = $IOS_SDK