зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #3015 - Parallelize test runs (fixes #2980); r=Manishearth+SimonSapin+metajack (from Ms2ger:travis-matrix)
Source-Repo: https://github.com/servo/servo Source-Revision: 560430e03ab82a405a650b5e5e180d73dacf8378
This commit is contained in:
Родитель
f0009f32ea
Коммит
474b48baca
|
@ -14,7 +14,7 @@
|
|||
servo-test
|
||||
Servo.app
|
||||
.config.mk.last
|
||||
build*
|
||||
/build*
|
||||
objdir
|
||||
parser.out
|
||||
src/components/script/dom/bindings/codegen/*.rs
|
||||
|
|
|
@ -9,13 +9,15 @@ install:
|
|||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.install.deps.sh; fi
|
||||
|
||||
before_script:
|
||||
- mkdir -p build
|
||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis.linux.before_script.sh; fi
|
||||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.before_script.sh; fi
|
||||
|
||||
script:
|
||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis.linux.script.sh; fi
|
||||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.script.sh; fi
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- ../mk/build.sh
|
||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ../travis.linux.script.sh $AFTER_BUILD; fi
|
||||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ../travis.osx.script.sh $AFTER_BUILD; fi
|
||||
|
||||
git:
|
||||
submodules: true
|
||||
|
@ -28,4 +30,17 @@ notifications:
|
|||
use_notice: true
|
||||
|
||||
env:
|
||||
- secure: qSjs06HEBF6A7ZyCWdltko+LkVz6OpNZQnEbr0nHB3rSl9mzwwjjH6v0VOKYNgvSPTgD8eHa/nnTeTcUJPaBB3mok+X43xkEUQWHLnW/X30QU0c8Xn+7db4hCgsaUupc1XaJhzpLDj3qV8dqDiGNKIwXJHlMzIuxSW424XL1CNc=
|
||||
global:
|
||||
- secure: qSjs06HEBF6A7ZyCWdltko+LkVz6OpNZQnEbr0nHB3rSl9mzwwjjH6v0VOKYNgvSPTgD8eHa/nnTeTcUJPaBB3mok+X43xkEUQWHLnW/X30QU0c8Xn+7db4hCgsaUupc1XaJhzpLDj3qV8dqDiGNKIwXJHlMzIuxSW424XL1CNc=
|
||||
matrix:
|
||||
- AFTER_BUILD=content
|
||||
- AFTER_BUILD=ref
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
env: AFTER_BUILD=unit-doc
|
||||
- os: osx
|
||||
env: AFTER_BUILD=unit
|
||||
- os: osx
|
||||
env: AFTER_BUILD=wpt
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
set -e
|
||||
../configure
|
||||
make tidy
|
||||
make -j2
|
|
@ -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
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
set -e
|
||||
cd build
|
||||
../configure
|
||||
make tidy
|
||||
make -j2
|
||||
make check-servo
|
||||
make check-content
|
||||
make check-ref-cpu
|
||||
WPTARGS="--processes=4" make check-wpt
|
||||
case $1 in
|
||||
unit) make check-servo ;;
|
||||
content) make check-content ;;
|
||||
ref) make check-ref-cpu ;;
|
||||
wpt) WPTARGS="--processes=4" make check-wpt ;;
|
||||
*) echo "Task $1 not enabled for OSX"
|
||||
esac
|
||||
|
|
Загрузка…
Ссылка в новой задаче