24
.travis.yml
24
.travis.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user