-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /usr/bin/env bash | ||
|
||
# This file automatically deploys changes to http://BayAreaMetro.github.io/fast-trips/. | ||
# This will give you an access token("secure"). This helps in creating an | ||
# environment variable named GH_TOKEN while building. | ||
# | ||
# Add this secure code to .travis.yml as described here http://docs.travis-ci.com/user/encryption-keys/ | ||
|
||
# Exit on error | ||
set -e | ||
|
||
ft_dir="$PWD" | ||
|
||
echo "Building docs" | ||
cd doc | ||
doxygen doxygen.conf | ||
sphinx-build -b html source build | ||
|
||
echo "Creating temporary directory" | ||
tmpdir = $("ft_ghpages" $(mktemp -u)) | ||
cd tempdir | ||
echo "Cloning repository" | ||
|
||
git clone --quiet --single-branch --branch=gh-pages [email protected]:BayAreaMetro/fast-trips.git gh-pages > /dev/null 2>&1 | ||
|
||
cd gh-pages | ||
rm -rf * | ||
|
||
cp -R ../fast-trips/doc/build/** ./ | ||
touch .nojekyll | ||
##git add -A . | ||
|
||
##git commit -am "Update documentation" | ||
##echo "Pushing commit" | ||
##git push -fq origin gh-pages > /dev/null 2>&1 |
This file was deleted.
Oops, something went wrong.