5if [ "$TRAVIS_BRANCH" != "develop" ]; then
6 echo "Ignoring documentation build for branch '$TRAVIS_BRANCH'."
10if [ -z "$DOC_TOKEN" ]; then
11 echo "Ignoring documentation build due to missing token."
15DOC_REF=github.com/brendanhay/gogol-doc.git
16GHCVER=${GHCVER?"GHCVER needs to be set."}
17BUILD_ID=${TRAVIS_BUILD_ID:-1}
18BUILD_NUMBER=${TRAVIS_BUILD_NUMBER:-1}
20path=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
23 stack --no-terminal --skip-ghc-check --stack-yaml stack-$GHCVER.yaml \
24 build --fast -j2 --haddock --no-haddock-deps \
29cp -R $(stack path --local-doc-root) $output
34 <h2>Gogol Library Documentation</h2>
35 <h4>Build <a href="https://travis-ci.org/brendanhay/gogol/builds/${BUILD_ID}">#${BUILD_NUMBER}</a>, GHC ${GHCVER}</h4>
39 for dir in $(ls -d $output/*/); do
42 <li><a href="${file}/index.html">${file}</a></li>
55git config user.name "Brendan Hay"
56git config user.email "brendan.g.hay@gmail.com"
59git commit -m "Travis CI documentation deploy $BUILD_NUMBER"
61git push --force --quiet "https://${DOC_TOKEN}@${DOC_REF}" master:gh-pages > /dev/null 2>&1
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list