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?"TRAVIS_BUILD_ID needs to be set."}
18BUILD_NUMBER=${TRAVIS_BUILD_NUMBER?"TRAVIS_BUILD_NUMBER needs to be set."}
20path=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
24resolver=$(sed -n 's/^resolver: *\(.*\)$/\1/p' stack-$GHCVER.yaml)
26echo "Using resolver ${resolver}"
28databases=( $(stack --stack-yaml stack-$GHCVER.yaml path | sed -n 's/^.*-pkg-db: *\(.*\)$/\1/p') )
29databases=( "${databases[@]/#/--package-db }" )
31echo "Using resolver ${resolver}"
32echo "Using databases ${databases[@]}"
35 stack --no-terminal --skip-ghc-check --stack-yaml stack-$GHCVER.yaml install \
40 stack --no-terminal --skip-ghc-check --stack-yaml stack-$GHCVER.yaml build \
44 standalone-haddock --hyperlink-source -o $output \
51 <h2>Gogol Library Documentation</h2>
52 <h4>Build <a href="https://travis-ci.org/brendanhay/gogol/builds/${BUILD_ID}">#${BUILD_NUMBER}</a>, GHC ${GHCVER}</h4>
56 for dir in $(ls -d $output/*/); do
59 <li><a href="${file}/index.html">${file}</a></li>
74git config user.name "Brendan Hay"
75git config user.email "brendan.g.hay@gmail.com"
78git commit -m "Travis CI documentation deploy $BUILD_NUMBER"
80git 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