-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (23 loc) · 1.21 KB
/
.travis.yml
File metadata and controls
28 lines (23 loc) · 1.21 KB
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
language: objective-c
osx_image: xcode9
env:
global:
- PROJECT=RxDataFlow.xcodeproj
- FRAMEWORK_SCHEME=RxDataFlow-iOS
- SDK=iphonesimulator
- DESTINATION_PLATFORM='platform=iOS Simulator,name=iPhone 6s,OS=latest'
before_install:
# - SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 6s (11.0) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
before_script:
- carthage version
- carthage checkout --no-use-binaries
- mkdir -p ./Carthage/Build/iOS
#build RxSwift
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxSwift-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build | xcpretty -c)
#copy RxSwift frameworks to Carthage/Build folder
- cp -R -f ./Build/Release-iphonesimulator/ ./Carthage/Build/iOS
script:
# - open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID
- set -o pipefail && xcodebuild -scheme "$FRAMEWORK_SCHEME" -project "$PROJECT" -sdk "$SDK" -configuration Debug ONLY_ACTIVE_ARCH=YES -destination "$DESTINATION_PLATFORM" -enableCodeCoverage YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash) -J '^RxDataFlow$'