Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage support + XCTests #16

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

# Xcode
build/
DerivedData

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -12,17 +15,27 @@ build/
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
profile
*.moved-aside
DerivedData
*.xcuserstate
*.xcscmblueprint
profile

## Obj-C/Swift specific
*.hmap
*.ipa

# Swift Package Manager
.build/

# Bundler
.bundle

Carthage
# Carthage
Carthage/Build

# 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
Expand All @@ -34,6 +47,4 @@ Pods/

Example/Podfile.lock

*.lock

*.lock
*.lock
35 changes: 22 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
osx_image: xcode7.1
cache: cocoapods
podfile: Example/Podfile
osx_image: xcode7.2
xcode_workspace: SwiftString.xcworkspace
xcode_scheme: SwiftString
xcode_sdk: iphonesimulator9.2
env:
global:
- FRAMEWORK_NAME=SwiftString
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example

script:
- set -o pipefail && xcodebuild test -workspace Example/SwiftString.xcworkspace -scheme SwiftString-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
- brew update
- brew upgrade carthage
before_script:
before_deploy:
- carthage build --no-skip-current
- carthage archive $FRAMEWORK_NAME
deploy:
provider: releases
api_key:
secure: QRcGJcgs54ZQTTmb5OSfbrqii7c+qJk9cwXjFyxWkgBK2xxnVN1s3Lb+rx403g6zhTKpCTgdtJaQQ9x90axpJIofS8WV14QQjtcYPzjZsaDyUL2oTFM8Nq+GZlpCGYrvHpMZTh+ZRYmKDRRj8Ni/USN4g70jwLcmTclKtOrbaIeJmFwdbyN94KzLmm7xjJqtxrE/8h5Wg/hKqRtMrCMStAOtbawvLItDtsmhWYi+6CqaZ5T9sQVlclUs4DVA8d6r8Lm65Orq/jEkXWYuUpddqUoUb7xArJ+ghTTx5+g0QxfbH28IEu9Z3Zq9YAY+H26lk7dmnXO6gZ1n4UnxeqozFf2K8e2L7dePFrmGOt+sL45CC36mzfHn0blyDespJlywFRB9DJA5JhIdEFVl8rxQXDLMVJOP9uhDGgjFjoS8XsUvwvoVNMuWjyIxOcl3MlRlgzIUZE1swIMmBA+tCUffwMfyy0hncNy5lfJ+bbN7T8WavUWwMCdvtsmr9N3YOT3ducxhm2s13sKkClkqzHPpzOTWdwHSF6En1XLEwqY5ebQtJFLWqizyIJUmjIW7C+rA17hSBFQciqaTOwdCjPpQbwzed9/rU9kYkNkna0XqOnj5lAIJv9ffs0RMYYWoz1I5/lHkZpliTJaERiC5ej0xBSPMQ1IMO3Rc2Qu8bXJ+sFE=
file: "SwiftString.framework.zip"
skip_cleanup: true
on:
repo: catalandres/SwiftString
tags: true
Binary file added SwiftString.framework.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions SwiftString.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Pod::Spec.new do |s|
s.platform = :ios, '8.0'
s.requires_arc = true

s.source_files = 'Pod/Classes/**/*'
s.source_files = 'SwiftString/Classes/**/*'
s.resource_bundles = {
'SwiftString' => ['Pod/Assets/*.png']
'SwiftString' => ['SwiftString/Assets/*.png']
}
end
Loading