Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmya committed Feb 9, 2015
0 parents commit 5da1ac0
Show file tree
Hide file tree
Showing 27 changed files with 1,734 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# OS X
.DS_Store

# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa

# Bundler
.bundle

# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
# Pods/
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail && xcodebuild test -workspace Example/YAScrollSegmentControl.xcworkspace -scheme YAScrollSegmentControl-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
- pod lib lint --quick
11 changes: 11 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
source 'https://github.com/CocoaPods/Specs.git'

target 'YAScrollSegmentControl', :exclusive => true do
pod "YAScrollSegmentControl", :path => "../"
end

target 'Tests', :exclusive => true do
pod "YAScrollSegmentControl", :path => "../"


end
22 changes: 22 additions & 0 deletions Example/Tests/Tests-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
11 changes: 11 additions & 0 deletions Example/Tests/Tests-Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every test case source file.
//

#ifdef __OBJC__



#endif
9 changes: 9 additions & 0 deletions Example/Tests/Tests.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// YAScrollSegmentControlTests.m
// YAScrollSegmentControlTests
//
// Created by jimmy on 02/09/2015.
// Copyright (c) 2014 jimmy. All rights reserved.
//

${TEST_EXAMPLE}
2 changes: 2 additions & 0 deletions Example/Tests/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

Loading

0 comments on commit 5da1ac0

Please sign in to comment.