mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-22 03:58:47 +00:00
Merge pull request #466 from bitstadium/fix/bitrise
Move to Bitrise for CI
This commit is contained in:
54
.travis.yml
54
.travis.yml
@@ -1,54 +0,0 @@
|
||||
language: objective-c
|
||||
osx_image: xcode8.3
|
||||
|
||||
env:
|
||||
global:
|
||||
- PROJECT="Support/HockeySDK.xcodeproj"
|
||||
- SDK="iphonesimulator"
|
||||
- CONFIGURATION="DEBUG"
|
||||
|
||||
matrix:
|
||||
- SCHEME="HockeySDK" DESTINATION="OS=8.3,name=iPad 2" RUN_TESTS="YES"
|
||||
- SCHEME="HockeySDK" DESTINATION="OS=9.1,name=iPhone 6 Plus" RUN_TESTS="YES"
|
||||
- SCHEME="HockeySDK" DESTINATION="OS=10.3.1,name=iPhone 6s" RUN_TESTS="YES"
|
||||
- SCHEME="HockeySDK Framework" DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 6" RUN_TESTS="YES"
|
||||
- SCHEME="HockeySDK Distribution" RUN_TESTS="NO" LINT="YES"
|
||||
|
||||
before_install:
|
||||
- xcrun simctl list
|
||||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
||||
- gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet
|
||||
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
||||
- gem install jazzy --no-rdoc --no-ri --no-document --quiet
|
||||
- brew install carthage
|
||||
|
||||
script:
|
||||
- open -b com.apple.iphonesimulator
|
||||
- set -o pipefail
|
||||
- COMMAND="env NSUnbufferedIO=YES xcodebuild -project '$PROJECT' -scheme '$SCHEME' -sdk '$SDK' -configuration '$CONFIGURATION'"
|
||||
|
||||
# Add xcpretty
|
||||
- COMMAND_SUFFIX=" | tee xcodebuild.log | xcpretty -f `xcpretty-travis-formatter`"
|
||||
|
||||
# Run tests
|
||||
- if [ $RUN_TESTS == "YES" ]; then
|
||||
COMMAND+=" -destination '$DESTINATION' XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS=\"CI=1\" "
|
||||
COMMAND="$COMMAND clean build-for-testing $COMMAND_SUFFIX && travis_retry $COMMAND test-without-building $COMMAND_SUFFIX";
|
||||
else
|
||||
COMMAND+="$COMMAND_SUFFIX";
|
||||
fi
|
||||
|
||||
- echo $COMMAND
|
||||
- eval $COMMAND && rm xcodebuild.log
|
||||
- if [ $LINT == "YES" ]; then
|
||||
cp -R Products/HockeySDK-iOS/ HockeySDK-iOS;
|
||||
pod lib lint;
|
||||
carthage build --no-skip-current;
|
||||
fi
|
||||
|
||||
# Use better failure diagnostics, copied from https://github.com/0xced/XCDYouTubeKit
|
||||
after_failure:
|
||||
- cat xcodebuild.log
|
||||
- cat -n $TMPDIR/com.apple.dt.XCTest-status/Session*.log
|
||||
- cat -n ~/Library/Logs/DiagnosticReports/xctest*.crash
|
||||
- sleep 5
|
||||
@@ -1,4 +1,4 @@
|
||||
[](https://travis-ci.org/bitstadium/HockeySDK-iOS)
|
||||
[](https://www.bitrise.io/app/30bf519f6bd0a5e2)
|
||||
[](https://github.com/Carthage/Carthage)
|
||||
[](http://cocoadocs.org/docsets/HockeySDK)
|
||||
[](https://slack.hockeyapp.net)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[](https://travis-ci.org/bitstadium/HockeySDK-iOS)
|
||||
[](https://www.bitrise.io/app/30bf519f6bd0a5e2)
|
||||
[](https://github.com/Carthage/Carthage)
|
||||
[](http://cocoadocs.org/docsets/HockeySDK)
|
||||
[](https://slack.hockeyapp.net)
|
||||
|
||||
Reference in New Issue
Block a user