mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Parallelize test runs on Travis (fixes #2980).
This commit is contained in:
parent
9d1a495a4e
commit
c791ec24a8
5 changed files with 53 additions and 30 deletions
|
@ -1,22 +1,27 @@
|
|||
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
|
||||
case $1 in
|
||||
content)
|
||||
make check-content
|
||||
;;
|
||||
ref)
|
||||
make check-ref-cpu
|
||||
;;
|
||||
unit-doc)
|
||||
make check-servo
|
||||
|
||||
mv x86_64-unknown-linux-gnu/rust_snapshot/rust-*/doc .
|
||||
cp ../src/etc/doc.servo.org/* doc
|
||||
make doc
|
||||
mv x86_64-unknown-linux-gnu/rust_snapshot/rust-*/doc .
|
||||
cp ../src/etc/doc.servo.org/* doc
|
||||
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/servo/doc.servo.org.git gh-pages
|
||||
fi
|
||||
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
|
||||
;;
|
||||
*) echo "Task $1 not enabled for Linux"
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue