2021-05-27 19:06:29 +02:00
|
|
|
language: objective-c
|
2022-04-18 06:14:03 +02:00
|
|
|
osx_image: xcode12
|
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- circle-ci
|
2021-05-27 19:06:29 +02:00
|
|
|
|
|
|
|
before_script:
|
2022-04-18 06:14:03 +02:00
|
|
|
- pod --version
|
2021-05-27 19:06:29 +02:00
|
|
|
# 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
|
2022-04-18 06:14:03 +02:00
|
|
|
script: xcodebuild -workspace UnrarKit.xcworkspace -scheme UnrarKit -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' -configuration Release analyze test CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer-output && [[ -z `find analyzer-output -name "*.html"` ]]
|
2021-05-27 19:06:29 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
script: ./Scripts/push-output.sh
|