QuietUnrar/Carthage/Checkouts/UnrarKit/.travis.yml

37 lines
1.6 KiB
YAML

language: objective-c
osx_image: xcode9.3
before_script:
# Make log level less verbose. Temporarily undo if more info is needed
- sudo log config --mode "level:default"
matrix:
include:
- stage: Test
env: Name=Mac
# The CLANG arguments and find command fail the build on analyzer errors
script: xcodebuild -workspace UnrarKit.xcworkspace -scheme UnrarKit -sdk macosx -configuration Release -quiet analyze test CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer-output && [[ -z `find analyzer-output -name "*.html"` ]]
- stage: Test
env: Name=iOS
# The CLANG arguments and find command fail the build on analyzer errors
script: xcodebuild -workspace UnrarKit.xcworkspace -scheme UnrarKit -destination 'platform=iOS Simulator,name=iPhone 7,OS=latest' -configuration Release analyze test CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer-output && [[ -z `find analyzer-output -name "*.html"` ]]
- stage: Test
env: Name=ExampleAppBuild
# The CLANG arguments and find command fail the build on analyzer errors
script: xcodebuild -workspace UnrarKit.xcworkspace -scheme UnrarExample -sdk iphonesimulator -configuration Release analyze CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer-output && [[ -z `find analyzer-output -name "*.html"` ]]
- stage: Validate
env: Name=CocoaPods
script: ./Scripts/cocoapod-validate.sh
- stage: Validate
env: Name=Carthage
script: ./Scripts/carthage-validate.sh
- stage: Release
if: tag IS present
before_install: brew upgrade python # Needs Python 3
script: ./Scripts/push-output.sh