Skip to content

Commit

Permalink
servo: Merge #3015 - Parallelize test runs (fixes #2980); r=Manishear…
Browse files Browse the repository at this point in the history
…th+SimonSapin+metajack (from Ms2ger:travis-matrix)

Source-Repo: https://github.com/servo/servo
Source-Revision: 560430e03ab82a405a650b5e5e180d73dacf8378
  • Loading branch information
Manishearth committed Aug 8, 2014
1 parent f0009f3 commit 474b48b
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 30 deletions.
2 changes: 1 addition & 1 deletion servo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
servo-test
Servo.app
.config.mk.last
build*
/build*
objdir
parser.out
src/components/script/dom/bindings/codegen/*.rs
Expand Down
23 changes: 19 additions & 4 deletions servo/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 4 additions & 0 deletions servo/mk/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set -e
../configure
make tidy
make -j2
39 changes: 22 additions & 17 deletions servo/travis.linux.script.sh
Original file line number Diff line number Diff line change
@@ -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
15 changes: 7 additions & 8 deletions servo/travis.osx.script.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 474b48b

Please sign in to comment.