Skip to content

Commit

Permalink
Merge pull request #9 from BenEmdon/cocopod-implementation
Browse files Browse the repository at this point in the history
Cocoapod implementation 📲
  • Loading branch information
BenEmdon authored Jan 3, 2017
2 parents 7cdfd36 + 517b1b4 commit 4ad6743
Show file tree
Hide file tree
Showing 65 changed files with 1,181 additions and 1,672 deletions.
30 changes: 20 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Xcode 🔨
# OS X
.DS_Store

## Build generated
# Xcode
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -14,10 +12,22 @@ DerivedData/
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.xccheckout
profile
*.moved-aside
*.xcuserstate
DerivedData
*.hmap
*.ipa

# Bundler
.bundle

# MacOS 🖥
.DS_Store
Carthage
# 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/
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode8.2
language: objective-c

# cache: cocoapods
podfile: Example/Podfile
before_install:
- brew update
- brew outdated xctool || brew upgrade xctool

- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
script:
- xcodebuild -project CenteredCollectionView.xcodeproj -scheme CenteredCollectionView build-for-testing -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
- xctool -project CenteredCollectionView.xcodeproj -scheme CenteredCollectionView run-tests -test-sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
- set -o pipefail && xcodebuild test -workspace Example/CenteredCollectionView.xcworkspace -scheme CenteredCollectionView-Example -sdk iphonesimulator10.2 -destination 'platform=iOS Simulator,OS=10.2,id=E40727B3-41FB-4D6E-B4CB-BFA87109EB12' ONLY_ACTIVE_ARCH=NO | xcpretty
# - pod lib lint
5 changes: 2 additions & 3 deletions CenteredCollectionView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Pod::Spec.new do |s|
#

# s.platform = :ios
s.platform = :ios, '9.0'
s.ios.deployment_target = '9.0'

# When using multiple platforms
# s.ios.deployment_target = '5.0'
Expand All @@ -88,8 +88,7 @@ Pod::Spec.new do |s|
# For header files it will include any header in the folder.
# Not including the public_header_files will make all headers public.
#

s.source_files = 'CenteredCollectionView/**/*.{swift}'
s.source_files = 'CenteredCollectionView/Classes/**/*.{swift}'
# s.exclude_files = 'Classes/Exclude'

# s.public_header_files = 'Classes/**/*.h'
Expand Down
Loading

0 comments on commit 4ad6743

Please sign in to comment.