Skip to content

Commit eb59331

Browse files
author
Philip Niedertscheider
committed
Added jazzy docs to travis
1 parent 4447ffd commit eb59331

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
stages:
1414
- Tests
1515
- Examples
16+
- Documentation
1617

1718
jobs:
1819
include:
@@ -125,3 +126,24 @@ jobs:
125126
-configuration Debug
126127
ONLY_ACTIVE_ARCH=YES
127128
test | bundle exec xcpretty
129+
130+
- stage: Documentation
131+
name: Generate Documentation
132+
language: objective-c
133+
git.depth: false
134+
if: branch = master
135+
cache:
136+
bundler: true
137+
install:
138+
- bundle install
139+
script:
140+
- git remote update
141+
- git fetch origin gh-pages:gh-pages --depth 1
142+
- git checkout gh-pages
143+
- bundle exec jazzy
144+
- git add docs
145+
- git config user.name "Travis"
146+
- git config user.email "[email protected]"
147+
- git commit -m "Updated docs for $TRAVIS_TAG"
148+
- git remote add secure-origin https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git
149+
- git push secure-origin gh-pages

0 commit comments

Comments
 (0)