forked from okitsutakatomo/Async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 loc) · 2.16 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
language: objective-c
osx_image: xcode8
env:
- "DESTINATION='platform=iOS Simulator,name=iPhone 5' ACTION=build"
- "DESTINATION='platform=watchOS Simulator,name=Apple Watch - 38mm' ACTION=build"
- "DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' ACTION=build"
- "DESTINATION='platform=OS X' ACTION=test"
script:
- set -o pipefail && xcodebuild -project Async.xcodeproj -scheme Async -destination "$DESTINATION" $ACTION | xcpretty
- ./Tests/BuildSettingsTests/main.sh "$DESTINATION"
# - set -o pipefail && xcodebuild -project AsyncTest/Async.xcodeproj -scheme Async -destination 'platform=OS X' test | xcpretty
# - set -o pipefail && xcodebuild -project AsyncTest/Async.xcodeproj -scheme Async -destination 'platform=watchOS Simulator,name=Apple Watch - 38mm' build | xcpretty
# - set -o pipefail && xcodebuild -project AsyncTest/Async.xcodeproj -scheme Async -destination 'platform=tvOS Simulator,name=Apple TV 1080p' test | xcpretty
# Carthage
# - xcodebuild -project Async.xcodeproj -scheme "Async iOS" | xcpretty
# - xcodebuild -project Async.xcodeproj -scheme "Async OSX" | xcpretty
# - xcodebuild -project Async.xcodeproj -scheme "Async tvOS" | xcpretty
# - xcodebuild -project Async.xcodeproj -scheme "Async watchOS" | xcpretty
# CocoaPods
# - xcodebuild clean -workspace AsyncPodsExample/AsyncPodsExample.xcworkspace -scheme "AsyncExample iOS" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
# - xcodebuild clean -workspace AsyncPodsExample/AsyncPodsExample.xcworkspace -scheme "AsyncExample OS X" -sdk macosx ONLY_ACTIVE_ARCH=NO | xcpretty
# tvOS target has issues with signing
# - xcodebuild clean build -workspace AsyncPodsExample/AsyncPodsExample.xcworkspace -scheme "AsyncExample tvOS" -sdk appletvos ONLY_ACTIVE_ARCH=NO
# Tests (OS X only, since simulator doesn't play nice with GCD)
# - set -o pipefail && xcodebuild clean build test -project AsyncTest/Async.xcodeproj -scheme "AsyncOSX" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ONLY_ACTIVE_ARCH=NO | xcpretty
# - set -o pipefail && xcodebuild test -project AsyncTest/Async.xcodeproj -scheme "AsyncOSX" | xcpretty
after_success:
- bash <(curl -s https://codecov.io/bash) -J 'Async'