Skip to content

Commit 8633f9f

Browse files
Merge pull request #209 from zbeekman/doc-deploy-fix
Fix documentation deployment issues
2 parents 73d046f + 2267847 commit 8633f9f

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ via [PR \#144](https://github.com/jacobwilliams/json-fortran/pull/144) from ([j
144144
[PR \#124](https://github.com/jacobwilliams/json-fortran/pull/124)
145145
from [zbeekman](https://github.com/zbeekman)
146146
- Migrate to
147-
[Codecov.io](https://codecov.io/github/jacobwilliams/json-fortran?branch=master)
147+
[Codecov.io](https://codecov.io/gh/jacobwilliams/json-fortran)
148148
[\#106](https://github.com/jacobwilliams/json-fortran/issues/106)
149149
via [PR \#107](https://github.com/jacobwilliams/json-fortran/pull/107)
150150
from [zbeekman](https://github.com/zbeekman)

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ Looking to contribute something to [JSON-Fortran](https://github.com/jacobwillia
3636
contribute. Please take a look at
3737
[the test coverage page](http://jacobwilliams.github.io/json-fortran/page/development-resources/json_module.F90.gcov.html)
3838
for a list of uncovered procedures, and at the
39-
[Codecov.io suggestions page](https://codecov.io/github/jacobwilliams/json-fortran/features/suggestions)
39+
[Codecov.io coverage status](https://codecov.io/gh/jacobwilliams/json-fortran)
4040
to find procedures and lines of code that are still uncovered by the
4141
[unit tests](https://github.com/jacobwilliams/json-fortran/tree/master/src/tests). It
4242
is worth pointing out that the majority of uncovered procedures are
4343
internal, overloaded procedures and can only be exercised by calling
4444
the corresponding generic procedure with input arguments that will
4545
resolve to the specific procedure in question. Let's keep the
4646
following graph trending upwards!
47-
![Codecov.io](https://codecov.io/github/jacobwilliams/json-fortran/branch.svg?branch=master)
47+
![Codecov.io](https://codecov.io/gh/jacobwilliams/json-fortran/branch/master/graphs/commits.svg)
4848

4949
[top](#contributing-to-json-fortran)
5050
## Pull Requests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ Miscellaneous
164164
* For more information about JSON, see: <http://www.json.org/>
165165
* [json-fortran on Travis CI](https://travis-ci.org/jacobwilliams/json-fortran)
166166
* [json-fortran on Waffle.IO](https://waffle.io/jacobwilliams/json-fortran)
167-
* [json-fortran on Codecov.IO](https://codecov.io/github/jacobwilliams/json-fortran?branch=master)
167+
* [json-fortran on Codecov.IO](https://codecov.io/gh/jacobwilliams/json-fortran)
168168

169169
[top](#json-fortran)

deploy.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,27 @@ if [ "$TRAVIS" ]; then #running under travis
1111
if [ "$TRAVIS_BRANCH" = "master" ] && \
1212
[ "$TRAVIS_PULL_REQUEST" = "false" ] && \
1313
[ "$(ls -A "$TRAVIS_BUILD_DIR/doc")" ] ; then #not empty
14-
git clone --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages
14+
git clone -q --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages >/dev/null 2>&1
1515
cd gh-pages || exit 1
16-
rm -r css favicon.png fonts index.html interface js lists media module page proc \
17-
program search.html sourcefile src tipuesearch type
16+
rm -rf -- css fonts interface lists module proc search.html src type favicon.png index.html \
17+
js media page program sourcefile tipuesearch || true
1818
cp -r "$TRAVIS_BUILD_DIR"/doc/* .
19-
git add -A # Add all the new files
20-
git commit -m "Development documentation updated by travis job $TRAVIS_JOB_NUMBER for commits $TRAVIS_COMMIT_RANGE"
21-
git push origin gh-pages
19+
git add -A || true # Add all the new files
20+
git commit -m "Development documentation updated by travis job $TRAVIS_JOB_NUMBER for commits $TRAVIS_COMMIT_RANGE" || true
21+
git push -fq origin gh-pages > /dev/null 2>&1 || true
2222
fi
2323
# If publishing a new/updated tag, deploy it's documentation
2424
if [ "$TRAVIS_TAG" ] && [ "$(ls -A "$TRAVIS_BUILD_DIR/doc")" ] ; then #not empty
2525
cd "$TRAVIS_BUILD_DIR" || exit 1
26-
git clone --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages
27-
sed "1 s/^/version: ${TRAVIS_TAG}\n/" json-fortran.md > json-fortran.tagged.md
26+
git clone -q --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages >/dev/null 2>&1
27+
sed "2 s/^/version: ${TRAVIS_TAG}\n/" json-fortran.md > json-fortran.tagged.md
28+
head json-fortran.tagged.md # Debug output
2829
# rebuild FORD documentation without pages, with version info, wiping out any existing tag folder
29-
ford -o "gh-pages/$TRAVIS_TAG" json-fortran.tagged.md
30+
ford --debug -o "gh-pages/$TRAVIS_TAG" json-fortran.tagged.md
3031
cd gh-pages || exit 1
3132
git add -A # add all new files in $TRAVIS_TAG/
3233
git commit -m "Tag/release documentation updated by travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT"
33-
git push origin gh-pages
34+
git push -f -q origin gh-pages >/dev/null 2>&1
3435
fi
3536
fi
3637
fi

pages/development-resources/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ look at the
2222
automatically generated by
2323
[FoBiS.py](https://github.com/szaghi/FoBiS). If all procedures are
2424
listed as covered, then please take a look at the
25-
[Codecov.io coverage suggestions](https://codecov.io/github/jacobwilliams/json-fortran/features/suggestions?ref=master).
25+
[Codecov.io coverage info](https://codecov.io/gh/jacobwilliams/json-fortran/branch/master).
2626

2727
# Scripts
2828

0 commit comments

Comments
 (0)