Build docs on Travis and upload them to GitHub Pages.

http://servo.github.io/servo/servo/index.html
This commit is contained in:
Simon Sapin 2014-07-25 16:52:23 +01:00
parent 205f1a847c
commit 54773d3ccd
3 changed files with 24 additions and 3 deletions

View file

@ -1,5 +1,19 @@
set -e
cd build
../configure
export DISPLAY=:1.0
export RUST_TEST_TASKS=1
make tidy && make -j2 && make check-servo && make check-content && make check-ref-cpu
make tidy
make -j2
make check-servo
make check-content
make check-ref-cpu
make doc
if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]
then
echo '<meta http-equiv=refresh content=0;url=servo/index.html>' > doc/index.html
sudo pip install ghp-import
ghp-import -n doc
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
fi