Better deployment of Jazzy and Pods
This commit is contained in:
46
.travis.yml
46
.travis.yml
@@ -44,29 +44,28 @@ jobs:
|
|||||||
install: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
|
install: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
|
||||||
script: swift test
|
script: swift test
|
||||||
|
|
||||||
- <<: *xcodebuild
|
- stage: deploy
|
||||||
stage: deploy
|
|
||||||
name: Jazzy
|
name: Jazzy
|
||||||
before_install: |
|
before_install: |
|
||||||
cat << EOF > .jazzy.yml
|
cat << EOF > .jazzy.yaml
|
||||||
|
module: Path
|
||||||
|
module_version: $TRAVIS_TAG
|
||||||
custom_categories:
|
custom_categories:
|
||||||
- name: Path
|
- name: Path
|
||||||
children:
|
children:
|
||||||
- Path
|
- Path
|
||||||
- /(_:_:)
|
- /(_:_:)
|
||||||
|
xcodebuild_arguments:
|
||||||
|
- UseModernBuildSystem=NO
|
||||||
|
output: output
|
||||||
|
github_url: https://github.com/mxcl/Path.swift
|
||||||
EOF
|
EOF
|
||||||
touch Contents.md
|
install: |
|
||||||
install: gem install jazzy
|
gem install jazzy
|
||||||
|
swift package generate-xcodeproj
|
||||||
script: |
|
script: |
|
||||||
jazzy \
|
jazzy
|
||||||
--no-hide-documentation-coverage \
|
rm -rf output/docsets
|
||||||
--theme fullwidth \
|
|
||||||
--output output \
|
|
||||||
--readme Contents.md \
|
|
||||||
--root-url https://mxcl.github.io/Path.swift/ \
|
|
||||||
--github_url https://github.com/mxcl/Path.swift \
|
|
||||||
--module Path \
|
|
||||||
--module-version $TRAVIS_TAG
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
provider: pages
|
||||||
skip-cleanup: true
|
skip-cleanup: true
|
||||||
@@ -77,5 +76,24 @@ jobs:
|
|||||||
|
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: CocoaPods
|
name: CocoaPods
|
||||||
|
before_install: |
|
||||||
|
cat << EOF > Path.swift.podspec
|
||||||
|
Pod::Spec.new do |s|
|
||||||
|
s.name = 'Path.swift'
|
||||||
|
s.version = '$TRAVIS_TAG'
|
||||||
|
s.summary = 'Delightful, robust file-pathing functions'
|
||||||
|
s.homepage = 'https://github.com/mxcl/Path.swift'
|
||||||
|
s.license = { :type => 'Unlicense', :file => 'LICENSE.md' }
|
||||||
|
s.author = { 'mxcl' => 'mxcl@me.com' }
|
||||||
|
s.source = { :git => 'https://github.com/mxcl/Path.swift.git', :tag => s.version.to_s }
|
||||||
|
s.social_media_url = 'https://twitter.com/mxcl'
|
||||||
|
s.osx.deployment_target = '10.10'
|
||||||
|
s.ios.deployment_target = '8.0'
|
||||||
|
s.tvos.deployment_target = '10.0'
|
||||||
|
s.watchos.deployment_target = '3.0'
|
||||||
|
s.source_files = 'Sources/*'
|
||||||
|
s.swift_version = "4.2"
|
||||||
|
end
|
||||||
|
EOF
|
||||||
install: gem install cocoapods --pre
|
install: gem install cocoapods --pre
|
||||||
script: pod trunk push --allow-warnings
|
script: pod trunk push --allow-warnings
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
Pod::Spec.new do |s|
|
|
||||||
s.name = 'Path.swift'
|
|
||||||
s.version = '0.4.1'
|
|
||||||
s.summary = 'Delightful, robust file-pathing functions'
|
|
||||||
s.homepage = 'https://github.com/mxcl/Path.swift'
|
|
||||||
s.license = { :type => 'Unlicense', :file => 'LICENSE.md' }
|
|
||||||
s.author = { 'mxcl' => 'mxcl@me.com' }
|
|
||||||
s.source = { :git => 'https://github.com/mxcl/Path.swift.git', :tag => s.version.to_s }
|
|
||||||
s.social_media_url = 'https://twitter.com/mxcl'
|
|
||||||
|
|
||||||
s.osx.deployment_target = '10.10'
|
|
||||||
s.ios.deployment_target = '8.0'
|
|
||||||
s.tvos.deployment_target = '10.0'
|
|
||||||
s.watchos.deployment_target = '3.0'
|
|
||||||
|
|
||||||
s.source_files = 'Sources/*'
|
|
||||||
|
|
||||||
s.swift_version = "4.2"
|
|
||||||
end
|
|
||||||
@@ -208,4 +208,4 @@ https://codebasesaga.com/canopy/
|
|||||||
|
|
||||||
[badge-platforms]: https://img.shields.io/badge/platforms-macOS%20%7C%20Linux%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS-lightgrey.svg
|
[badge-platforms]: https://img.shields.io/badge/platforms-macOS%20%7C%20Linux%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS-lightgrey.svg
|
||||||
[badge-languages]: https://img.shields.io/badge/swift-4.2-orange.svg
|
[badge-languages]: https://img.shields.io/badge/swift-4.2-orange.svg
|
||||||
[online API documentation]: https://mxcl.github.io/Path.swift/
|
[online API documentation]: https://mxcl.github.io/Path.swift/Structs/Path.html
|
||||||
|
|||||||
Reference in New Issue
Block a user