Merge pull request #3 from mxcl/jazzy

Generate Jazzy docs in Travis
This commit is contained in:
Max Howell
2019-01-19 12:40:21 -05:00
committed by GitHub

View File

@@ -1,6 +1,11 @@
# only run for: merge commits, releases and pull-requests
if: type != push OR branch = master OR branch =~ /^\d+\.\d+(\.\d+)?(-\S*)?$/
stages:
- name: test
- name: deploy
if: branch =~ ^\d+\.\d+\.\d+$
os: osx
language: swift
osx_image: xcode10.1
@@ -38,3 +43,22 @@ jobs:
sudo: false
install: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
script: swift test
- <<: *xcodebuild
stage: deploy
name: Jazzy
install: gem install jazzy
script: |
jazzy \
--min-acl internal \
--no-hide-documentation-coverage \
--theme fullwidth \
--output output \
--readme README.md \
--root-url https://Path.swift.github.io/ \
--github_url https://github.com/mxcl/Path.swift
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: output