Skip to content
New issue

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

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

Already on GitHub? # to your account

✨🍫 Add CocoaPods podspec #132

Merged
merged 3 commits into from
Jul 5, 2018
Merged
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
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ aliases:
xcode_scheme: Commandant
os: osx
language: objective-c
- &cocoapods
script:
- pod repo update master
- pod lib lint --verbose
os: osx
language: objective-c
- &swiftpm
script:
- swift --version
Expand Down Expand Up @@ -37,35 +43,39 @@ matrix:
- <<: *xcode
osx_image: xcode9.3
env: JOB=Xcode9.3
- <<: *cocoapods
osx_image: xcode9.3
- <<: *swiftpm_darwin
osx_image: xcode9.2
- <<: *swiftpm_darwin
osx_image: xcode9.3
- <<: *swiftpm_linux
env:
env:
- JOB=Linux
- SWIFT_VERSION=4.0.3
- <<: *swiftpm_linux
env:
env:
- JOB=Linux
- <<: *swiftpm_linux
env:
env:
- JOB=Linux
- SWIFT_VERSION=4.1.2
- <<: *swiftpm_linux
env:
env:
- JOB=Linux
- SWIFT_VERSION=4.2-DEVELOPMENT-SNAPSHOT-2018-06-15-a

notifications:
email: false
slack:
secure: DBDJCDEfXVb4g1/vziIYpjwCE5dh75SwBGZAcqbk6wOl6KFS9lA+fk/PtAbuXAEkRNr5qv56aQ+NPRnjSdqmhKB9bwywxUI7LA1JlvxAk6HUya0XWLLH0dvkRJG1o6QWiOnZ79gjWvl/VuN/YH9X7SgwdTTA4xush8ogP+ku8YE=

before_deploy:
- brew update
- brew outdated carthage || brew upgrade carthage
- carthage build --no-skip-current --platform mac
- carthage archive Commandant

deploy:
provider: releases
api_key:
Expand Down
74 changes: 74 additions & 0 deletions Commandant.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#
# Commandant.podspec
# Commandant
#

# Be sure to run `pod spec lint Commandant.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|
s.name = "Commandant"
s.version = "0.14.0"
s.summary = "Type-safe command line argument handling"
s.description = <<-DESC
Commandant is a Swift framework for parsing command-line arguments, inspired by Argo
(which is, in turn, inspired by the Haskell library Aeson).
DESC

s.homepage = "https://github.com/Carthage/Commandant"
s.license = { type: "MIT", file: "LICENSE.md" }
s.authors = { "Carthage contributors" => "https://github.com/Carthage/Commandant/graphs/contributors" }

# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#

s.platform = :osx, "10.9"

# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#

s.source = { git: "https://github.com/Carthage/Commandant.git", tag: s.version }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#

s.source_files = "Sources/**/*.swift"
# s.exclude_files = "Classes/Exclude"
# s.public_header_files = "Classes/**/*.h"



# s.preserve_paths = "FilesToSave", "MoreFilesToSave"


# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Link your library with frameworks, or libraries. Libraries do not include
# the lib prefix of their name.
#

# s.framework = "SomeFramework"
# s.frameworks = "SomeFramework", "AnotherFramework"

# s.library = "iconv"
# s.libraries = "iconv", "xml2"


# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If your library depends on compiler flags you can set them in the xcconfig hash
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.

# s.requires_arc = true

# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }

s.dependency "Result", "~> 4.0"
Copy link
Member

@ikesyo ikesyo Jul 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually wrong. At 0.14.0 this should be ~ 3.2.

https://github.com/Carthage/Commandant/blob/0.14.0/Cartfile#L1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependencies are updated in #130 and not released yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, the spec can be patched


end