forked from watson-developer-cloud/swift-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (55 loc) · 5.26 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
language: objective-c
osx_image: xcode8
branches:
only:
- master
env:
global:
- IOS_SDK="iphonesimulator9.3"
- IOS8_DESTINATION="OS=8.4,name=iPhone 6"
- IOS9_DESTINATION="OS=9.3,name=iPhone 6"
before_install:
- openssl aes-256-cbc -K $encrypted_5cd05c057710_key -iv $encrypted_5cd05c057710_iv -in Source/SupportingFiles/Credentials.swift.enc -out Source/SupportingFiles/Credentials.swift -d
before_script:
- carthage update --platform iOS
after_success:
- bash <(curl -s https://codecov.io/bash)
script:
# build and test for iOS 9
- xcodebuild build -scheme "RestKit" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" | xcpretty
- xcodebuild test -scheme "AlchemyDataNewsV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "AlchemyLanguageV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "AlchemyVisionV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "ConversationV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "ConversationV1Experimental" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "DialogV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "DocumentConversionV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "LanguageTranslatorV2" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "NaturalLanguageClassifierV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "PersonalityInsightsV2" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "RelationshipExtractionV1Beta" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "RetrieveAndRankV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "SpeechToTextV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "TextToSpeechV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "ToneAnalyzerV3" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "TradeoffAnalyticsV1" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "VisualRecognitionV3" -sdk "$IOS_SDK" -destination "$IOS9_DESTINATION" -enableCodeCoverage "YES" | xcpretty
# build and test for iOS 8
- xcodebuild build -scheme "RestKit" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" | xcpretty
- xcodebuild test -scheme "AlchemyDataNewsV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "AlchemyLanguageV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "AlchemyVisionV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "ConversationV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "ConversationV1Experimental" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "DialogV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "DocumentConversionV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "LanguageTranslatorV2" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "NaturalLanguageClassifierV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "PersonalityInsightsV2" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "RelationshipExtractionV1Beta" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "RetrieveAndRankV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "SpeechToTextV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "TextToSpeechV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "ToneAnalyzerV3" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "TradeoffAnalyticsV1" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty
- xcodebuild test -scheme "VisualRecognitionV3" -sdk "$IOS_SDK" -destination "$IOS8_DESTINATION" -enableCodeCoverage "YES" | xcpretty