-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
193 changed files
with
14,811 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
explicit-references: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
language: objective-c | ||
env: | ||
global: | ||
LC_CTYPE="en_US.UTF-8" | ||
matrix: | ||
- CONFIGURATION="Code Coverage" SCHEME="XCDYouTubeKit iOS Static Library" DESTINATION="platform=iOS Simulator,name=iPhone 5s" OBJROOT="build" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit iOS Static Library" DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=7.1" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit iOS Static Library" DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=8.1" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit iOS Static Library" DESTINATION="platform=iOS Simulator,name=iPhone 4s" RUN_CLANG_STATIC_ANALYZER="YES" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit iOS Static Library" DESTINATION="platform=iOS Simulator,name=iPhone 5s" RUN_CLANG_STATIC_ANALYZER="YES" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit iOS Framework" DESTINATION="platform=iOS Simulator,name=iPhone 4s" RUN_CLANG_STATIC_ANALYZER="YES" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit iOS Framework" DESTINATION="platform=iOS Simulator,name=iPhone 5s" RUN_CLANG_STATIC_ANALYZER="YES" | ||
- CONFIGURATION="Release" SCHEME="XCDYouTubeKit OS X" DESTINATION="platform=OS X" RUN_CLANG_STATIC_ANALYZER="YES" | ||
before_install: | ||
- xcrun simctl list | ||
install: | ||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet | ||
- sudo easy_install cpp-coveralls | ||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet | ||
- sudo easy_install cpp-coveralls | ||
script: | ||
- export LC_CTYPE=en_US.UTF-8 | ||
- set -o pipefail | ||
- xcodebuild test -project XCDYouTubeKit.xcodeproj -scheme 'XCDYouTubeKit iOS Static Library' -destination 'platform=iOS Simulator,name=iPhone Retina (4-inch)' | xcpretty -c | ||
- xcodebuild test -project XCDYouTubeKit.xcodeproj -scheme 'XCDYouTubeKit iOS Static Library' -destination 'platform=iOS Simulator,name=iPhone Retina (4-inch 64-bit)' OBJROOT=build | xcpretty -c | ||
- xcodebuild test -project XCDYouTubeKit.xcodeproj -scheme 'XCDYouTubeKit OS X' | xcpretty -c | ||
- ./Scripts/run-tests.sh | ||
after_success: | ||
- coveralls --include XCDYouTubeKit | ||
- if [ "$CONFIGURATION" == "Code Coverage" ]; then | ||
coveralls --include XCDYouTubeKit; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/python | ||
|
||
import os, plistlib, sys | ||
|
||
run_clang_static_analyzer = os.environ.get('RUN_CLANG_STATIC_ANALYZER', '0').strip(' ') | ||
if not run_clang_static_analyzer[:1] in 'YyTt123456789': | ||
sys.exit(0) | ||
|
||
analyzer_results_dir = os.path.join(os.environ['TARGET_TEMP_DIR'], 'StaticAnalyzer', os.environ['PROJECT_NAME'], os.environ['TARGET_NAME'], os.environ['CURRENT_VARIANT'], os.environ['CURRENT_ARCH']) | ||
if not os.path.exists(analyzer_results_dir): | ||
sys.exit("error: Static Anaylzer results not found, expected in %s" % analyzer_results_dir) | ||
|
||
exit_code = 0 | ||
for result in os.listdir(analyzer_results_dir): | ||
with open(os.path.join(analyzer_results_dir, result)) as f: | ||
plist = plistlib.readPlist(f) | ||
for diagnostic in plist['diagnostics']: | ||
location = diagnostic['location'] | ||
path = plist['files'][location['file']] | ||
print "%s:%s:%s: error: Static Anaylzer Issue: %s" % (path, location['line'], location['col'], diagnostic['description']) | ||
exit_code = 1 | ||
|
||
sys.exit(exit_code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -o pipefail | ||
|
||
: ${SCHEME:="XCDYouTubeKit iOS Static Library"} | ||
: ${CONFIGURATION:="Release"} | ||
: ${DESTINATION:="platform=iOS Simulator,name=iPhone 5s"} | ||
|
||
COMMAND="xcodebuild clean test -project XCDYouTubeKit.xcodeproj -scheme '${SCHEME}' -configuration '${CONFIGURATION}' -destination '${DESTINATION}'" | ||
|
||
for BUILD_SETTING in OBJROOT RUN_CLANG_STATIC_ANALYZER; do | ||
VALUE=`eval echo \\$"${BUILD_SETTING}"` | ||
if [ ! -z "${VALUE}" ]; then | ||
COMMAND+=" ${BUILD_SETTING}='${VALUE}'" | ||
unset ${BUILD_SETTING} | ||
fi | ||
done | ||
|
||
xcpretty --version > /dev/null && COMMAND+=" | xcpretty -c" | ||
|
||
set -x | ||
eval "${COMMAND}" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
xcodeproj 'XCDYouTubeKit Demo.xcodeproj' | ||
workspace '../XCDYouTubeKit Demo.xcworkspace' | ||
|
||
def import_pods | ||
pod 'XCDLumberjackNSLogger', '~> 1.0.0' | ||
end | ||
|
||
target 'XCDYouTubeKit iOS Demo' do | ||
platform :ios, '5.0' | ||
import_pods | ||
end | ||
|
||
target 'XCDYouTubeKit OS X Demo' do | ||
platform :osx, '10.9' | ||
import_pods | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
PODS: | ||
- CocoaLumberjack (2.0.0): | ||
- CocoaLumberjack/Default (= 2.0.0) | ||
- CocoaLumberjack/Extensions (= 2.0.0) | ||
- CocoaLumberjack/Core (2.0.0) | ||
- CocoaLumberjack/Default (2.0.0): | ||
- CocoaLumberjack/Core | ||
- CocoaLumberjack/Extensions (2.0.0): | ||
- CocoaLumberjack/Default | ||
- NSLogger (1.5.1): | ||
- NSLogger/Standard (= 1.5.1) | ||
- NSLogger/Standard (1.5.1) | ||
- XCDLumberjackNSLogger (1.0.0): | ||
- CocoaLumberjack (~> 2.0.0) | ||
- NSLogger (~> 1.5.1) | ||
|
||
DEPENDENCIES: | ||
- XCDLumberjackNSLogger (~> 1.0.0) | ||
|
||
SPEC CHECKSUMS: | ||
CocoaLumberjack: a6f77d987d65dc7ba86b0f84db7d0b9084f77bcb | ||
NSLogger: 5ed223a2436df96244e033be750656dacdeec034 | ||
XCDLumberjackNSLogger: 499dd507ac73e41b63b600b3280b9920e35f53c6 | ||
|
||
COCOAPODS: 0.37.2 |
81 changes: 81 additions & 0 deletions
81
XCDYouTubeKit Demo/Pods/CocoaLumberjack/Classes/CocoaLumberjack.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.