42 строки
1.9 KiB
YAML
42 строки
1.9 KiB
YAML
language: objective-c
|
|
osx_image: xcode7.2
|
|
|
|
env:
|
|
global:
|
|
- PROJECT="Support/ApplicationInsights.xcodeproj"
|
|
- SDK="iphonesimulator"
|
|
|
|
matrix:
|
|
- SCHEME="ApplicationInsights" DESTINATION="OS=8.2,name=iPhone 6" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
|
|
- SCHEME="ApplicationInsights" DESTINATION="OS=8.3,name=iPhone 6 Plus" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
|
|
- SCHEME="ApplicationInsights" DESTINATION="OS=9.1,name=iPad Air 2" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
|
|
- SCHEME="ApplicationInsights" DESTINATION="OS=9.2,name=iPhone 5" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
|
|
- SCHEME="ApplicationInsights Framework" CONFIGURATION="Release" RUN_TESTS="NO" POD_LINT="YES"
|
|
|
|
before_install:
|
|
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
|
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
|
- brew tap homebrew/versions
|
|
- brew install appledoc22
|
|
- brew link --force appledoc22
|
|
|
|
notifications:
|
|
slack:
|
|
rooms:
|
|
- secure: dCzA1+dtjKkHk2PK6RWBSE0Obgf0CvIejhXXH4Aba29zfVQg5Bv0yWJ34YHnPMFPA7+eyFrW2TqGqI7gA7L7Ju0RWHwu9Z0XayCcMpOCZVKTOSf/7SrAvtODKNzAT/S55HZOaj8yxK6l5a0cMGXfGM7j+NLdkjyba7ypQKsn0ug=
|
|
on_success: change
|
|
on_failure: always
|
|
|
|
script:
|
|
- set -o pipefail
|
|
- COMMAND="xcodebuild -project '$PROJECT' -scheme '$SCHEME' -sdk '$SDK' -configuration '$CONFIGURATION' XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS='$XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS'"
|
|
- if [ $RUN_TESTS == "YES" ]; then
|
|
COMMAND+=" -destination '$DESTINATION' clean test";
|
|
fi
|
|
- COMMAND+=" | xcpretty -c"
|
|
- eval $COMMAND
|
|
- if [ $POD_LINT == "YES" ]; then
|
|
cp -R Products/ApplicationInsights ApplicationInsights;
|
|
pod lib lint;
|
|
fi
|