-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back private_over_fileprivate for SwiftLint (#67)
General cleanups before 0.3 release and an attempt to make Jazzy run on CI (failed so far) * Cleanup SwiftLint warnings, add docs.sh with jazzy * Fix conditional checks in docs.sh * Refine docs.sh * Install jazzy from gem, not brew in docs.sh * Run jazzy from gem install path in docs.sh * Can't easily run Jazzy on Travis :( * Another attempt to make Jazzy work on Travis
- Loading branch information
1 parent
401de6a
commit b8b1ed7
Showing
5 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
echo "TRAVIS_PULL_REQUEST is $TRAVIS_PULL_REQUEST" | ||
echo "TRAVIS_BRANCH is $TRAVIS_BRANCH" | ||
if [[ $TRAVIS_BRANCH == "master" ]]; then | ||
PREFIX="master" | ||
elif [[ ! -z $TRAVIS_TAG ]]; then | ||
PREFIX=$TRAVIS_TAG | ||
else | ||
echo "no tag set or branch isn't 'master', no upload will happen" | ||
exit 0 | ||
fi | ||
|
||
echo "docs will be uploaded to s3://xmlcoder.org/docs/$PREFIX" | ||
|
||
export GEM_HOME=$HOME/.gem | ||
|
||
gem install --user-install jazzy && \ | ||
~/.gem/ruby/2.4.0/bin/jazzy && aws s3 sync docs s3://xmlcoder.org/docs/$PREFIX |