28
.travis.yml
28
.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
|
||||||
@@ -11,7 +16,7 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- script: swift test
|
- script: swift test
|
||||||
name: macOS
|
name: macOS
|
||||||
|
|
||||||
- &xcodebuild
|
- &xcodebuild
|
||||||
before_install: swift package generate-xcodeproj
|
before_install: swift package generate-xcodeproj
|
||||||
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
|
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
|
||||||
@@ -29,7 +34,7 @@ jobs:
|
|||||||
-destination 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 4 - 40mm' \
|
-destination 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 4 - 40mm' \
|
||||||
build | xcpretty
|
build | xcpretty
|
||||||
|
|
||||||
|
|
||||||
- env: SWIFT_VERSION=4.2.1
|
- env: SWIFT_VERSION=4.2.1
|
||||||
os: linux
|
os: linux
|
||||||
name: Linux
|
name: Linux
|
||||||
@@ -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