Skip to content

Commit

Permalink
Merge pull request #42 from botstory/feature/auto-deploy-github-page
Browse files Browse the repository at this point in the history
Feature/auto deploy GitHub page
  • Loading branch information
hyzhak committed Nov 6, 2016
2 parents 822975d + e48c9a6 commit 8a2da19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pytest-asyncio==0.5.0
pytest-catchlog==1.2.2
pytest-cov==2.4.0
pytest-mock==1.4.0
rst2html5-tools
4 changes: 3 additions & 1 deletion scripts/compile-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
echo "Compiling..."

rm -rf out/* out/**/* || exit 0
mkdir -p out
cp -r static/* out

echo "Compiling README.rst..."
rst2html5 --bootstrap-css --pretty-print-code --jquery --embed-content README.rst > out/readme.html
3 changes: 3 additions & 0 deletions scripts/deploy-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ function doCompile {
${DIR}/compile-static.sh
}

# Content of this directory will be deployed
mkdir -p out

# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Skipping deploy of pull request; just doing a build."
Expand Down

0 comments on commit 8a2da19

Please sign in to comment.