Skip to content

Commit 21c23c3

Browse files
authored
Merge pull request #132 from phatblat/cocoapods
✨🍫 Add CocoaPods podspec
2 parents 05ff9bc + 20050ee commit 21c23c3

File tree

2 files changed

+88
-4
lines changed

2 files changed

+88
-4
lines changed

β€Ž.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ aliases:
55
xcode_scheme: Commandant
66
os: osx
77
language: objective-c
8+
- &cocoapods
9+
script:
10+
- pod repo update master
11+
- pod lib lint --verbose
12+
os: osx
13+
language: objective-c
814
- &swiftpm
915
script:
1016
- swift --version
@@ -37,35 +43,39 @@ matrix:
3743
- <<: *xcode
3844
osx_image: xcode9.3
3945
env: JOB=Xcode9.3
46+
- <<: *cocoapods
47+
osx_image: xcode9.3
4048
- <<: *swiftpm_darwin
4149
osx_image: xcode9.2
4250
- <<: *swiftpm_darwin
4351
osx_image: xcode9.3
4452
- <<: *swiftpm_linux
45-
env:
53+
env:
4654
- JOB=Linux
4755
- SWIFT_VERSION=4.0.3
4856
- <<: *swiftpm_linux
49-
env:
57+
env:
5058
- JOB=Linux
5159
- <<: *swiftpm_linux
52-
env:
60+
env:
5361
- JOB=Linux
5462
- SWIFT_VERSION=4.1.2
5563
- <<: *swiftpm_linux
56-
env:
64+
env:
5765
- JOB=Linux
5866
- SWIFT_VERSION=4.2-DEVELOPMENT-SNAPSHOT-2018-06-15-a
5967

6068
notifications:
6169
email: false
6270
slack:
6371
secure: DBDJCDEfXVb4g1/vziIYpjwCE5dh75SwBGZAcqbk6wOl6KFS9lA+fk/PtAbuXAEkRNr5qv56aQ+NPRnjSdqmhKB9bwywxUI7LA1JlvxAk6HUya0XWLLH0dvkRJG1o6QWiOnZ79gjWvl/VuN/YH9X7SgwdTTA4xush8ogP+ku8YE=
72+
6473
before_deploy:
6574
- brew update
6675
- brew outdated carthage || brew upgrade carthage
6776
- carthage build --no-skip-current --platform mac
6877
- carthage archive Commandant
78+
6979
deploy:
7080
provider: releases
7181
api_key:

β€ŽCommandant.podspec

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#
2+
# Commandant.podspec
3+
# Commandant
4+
#
5+
6+
# Be sure to run `pod spec lint Commandant.podspec' to ensure this is a
7+
# valid spec and to remove all comments including this before submitting the spec.
8+
#
9+
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
10+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
11+
#
12+
13+
Pod::Spec.new do |s|
14+
s.name = "Commandant"
15+
s.version = "0.14.0"
16+
s.summary = "Type-safe command line argument handling"
17+
s.description = <<-DESC
18+
Commandant is a Swift framework for parsing command-line arguments, inspired by Argo
19+
(which is, in turn, inspired by the Haskell library Aeson).
20+
DESC
21+
22+
s.homepage = "https://github.com/Carthage/Commandant"
23+
s.license = { type: "MIT", file: "LICENSE.md" }
24+
s.authors = { "Carthage contributors" => "https://github.com/Carthage/Commandant/graphs/contributors" }
25+
26+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
27+
#
28+
29+
s.platform = :osx, "10.9"
30+
31+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
32+
#
33+
34+
s.source = { git: "https://github.com/Carthage/Commandant.git", tag: s.version }
35+
36+
37+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
38+
#
39+
40+
s.source_files = "Sources/**/*.swift"
41+
# s.exclude_files = "Classes/Exclude"
42+
# s.public_header_files = "Classes/**/*.h"
43+
44+
45+
46+
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
47+
48+
49+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
50+
#
51+
# Link your library with frameworks, or libraries. Libraries do not include
52+
# the lib prefix of their name.
53+
#
54+
55+
# s.framework = "SomeFramework"
56+
# s.frameworks = "SomeFramework", "AnotherFramework"
57+
58+
# s.library = "iconv"
59+
# s.libraries = "iconv", "xml2"
60+
61+
62+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
63+
#
64+
# If your library depends on compiler flags you can set them in the xcconfig hash
65+
# where they will only apply to your library. If you depend on other Podspecs
66+
# you can include multiple dependencies to ensure it works.
67+
68+
# s.requires_arc = true
69+
70+
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
71+
72+
s.dependency "Result", "~> 4.0"
73+
74+
end

0 commit comments

Comments
Β (0)