forked from servo/webrender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (58 loc) · 2.69 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
dist: trusty
language: rust
rust:
- 1.27.0
- nightly
matrix:
fast_finish: true
allow_failures:
- rust: nightly
os:
- linux
# - osx
# Travis is slow and often backlogged so we only run it on the "auto" branch
# which is what bors uses to test the merge commit when merging a PR. Individual
# PRs can catch errors by checking the taskcluster result instead.
branches:
only:
- auto
notifications:
webhooks: http://build.servo.org:54856/travis
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
keyurl: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'ppa:jonathonf/python-2.7'
packages:
- libgl1-mesa-dev
- llvm-3.9-dev
- libedit-dev
- python
env:
- BUILD_KIND=DEBUG RUST_BACKTRACE=1 RUSTFLAGS='--deny warnings'
- BUILD_KIND=RELEASE RUST_BACKTRACE=1 RUSTFLAGS='--deny warnings'
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LLVM_CONFIG=/usr/lib/llvm-3.9/bin/llvm-config; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install zlib; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig:$PKG_CONFIG_PATH"; fi
- virtualenv ../venv
- source ../venv/bin/activate
- python --version
- pip install mako voluptuous PyYAML servo-tidy
script:
- servo-tidy
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender_api && cargo test --verbose --features "ipc"); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo check --verbose --no-default-features); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo check --verbose --no-default-features --features capture); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo check --verbose --features profiler,capture); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo check --verbose --features replay); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo check --verbose --no-default-features --features pathfinder); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo check --verbose --no-default-features --features serialize_program); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd wrench && cargo check --verbose --features env_logger); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd examples && cargo check --verbose); fi
- if [ $BUILD_KIND = DEBUG ]; then (cargo test --all --verbose); fi
- if [ $BUILD_KIND = RELEASE ]; then (cd wrench && python script/headless.py reftest); fi
- if [ $BUILD_KIND = RELEASE ]; then (cd wrench && cargo build --release); fi
- if [ $TRAVIS_RUST_VERSION == "nightly" ]; then (cd webrender && cargo bench --verbose); fi