24
.travis.yml
24
.travis.yml
@@ -1,6 +1,11 @@
|
|||||||
# only run for: merge commits, releases and pull-requests
|
# only run for: merge commits, releases and pull-requests
|
||||||
if: type != push OR branch = master OR branch =~ /^\d+\.\d+(\.\d+)?(-\S*)?$/
|
if: type != push OR branch = master OR branch =~ /^\d+\.\d+(\.\d+)?(-\S*)?$/
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- name: test
|
||||||
|
- name: deploy
|
||||||
|
if: branch =~ ^\d+\.\d+\.\d+$
|
||||||
|
|
||||||
os: osx
|
os: osx
|
||||||
language: swift
|
language: swift
|
||||||
osx_image: xcode10.1
|
osx_image: xcode10.1
|
||||||
@@ -38,3 +43,22 @@ jobs:
|
|||||||
sudo: false
|
sudo: false
|
||||||
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
|
||||||
|
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