Permalink
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (56 sloc) 2.57 KB
osx_image: xcode10
language: objective-c
sudo: required
env:
global:
- PROJECT="ReactorKit.xcodeproj"
- SCHEME="ReactorKit-Package"
- IOS_SDK="iphonesimulator12.0"
- MACOS_SDK="macosx10.14"
- TVOS_SDK="appletvsimulator12.0"
- FRAMEWORK="ReactorKit"
matrix:
- SDK="$IOS_SDK" DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=12.0"
- SDK="$MACOS_SDK" DESTINATION="arch=x86_64"
- SDK="$TVOS_SDK" DESTINATION="OS=12.0,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