mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Build docs on Travis and upload them to GitHub Pages.
http://servo.github.io/servo/servo/index.html
This commit is contained in:
parent
205f1a847c
commit
54773d3ccd
3 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue