forked from servo/webrender
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
76 lines (70 loc) · 3.83 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
dist: trusty
language: rust
rust:
- 1.36.0
- nightly
matrix:
fast_finish: true
allow_failures:
- rust: nightly
os:
- linux
- osx
branches:
only:
- master
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_GL RUST_BACKTRACE=1 RUSTFLAGS='--deny warnings'
- BUILD_KIND=DEBUG_GFX RUST_BACKTRACE=1 RUSTFLAGS='--deny warnings'
- BUILD_KIND=RELEASE_GL RUST_BACKTRACE=1 RUSTFLAGS='--deny warnings'
- BUILD_KIND=RELEASE_GFX 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
- pip install virtualenv
- virtualenv ../venv
- source ../venv/bin/activate
- python --version
- pip install mako voluptuous PyYAML servo-tidy
script:
# - servo-tidy
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export BACKEND_TYPE="vulkan"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export BACKEND_TYPE="metal"; fi
- if [ $BUILD_KIND = DEBUG_GL ]; then export BACKEND_TYPE="gl"; fi
- if [ $BUILD_KIND = DEBUG_GL ]; then export BENCH_FEATURES="--features gl"; fi
- if [ $BUILD_KIND = RELEASE_GL ]; then export BACKEND_TYPE="gl"; fi
- if [ $BUILD_KIND = RELEASE_GL ]; then export BENCH_FEATURES="--features gl"; fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd webrender_api && cargo test --features "ipc"); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd webrender && cargo check --no-default-features --features gl,serde); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd webrender && cargo check --no-default-features --features capture,gl,serde); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd webrender && cargo check --features profiler,capture,gl); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd webrender && cargo check --features replay,gl); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd webrender && cargo check --no-default-features --features serialize_program,gl,serde); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd wrench && cargo check --features env_logger,gl); fi
- if [ $BUILD_KIND = DEBUG_GL ]; then (cd examples && cargo check --features gl); fi
#- if [ $BUILD_KIND = DEBUG_GL ]; then (cargo test --all); fi
- if [ $BUILD_KIND = RELEASE_GL ]; then (cd wrench && python script/headless.py reftest); fi
- if [ $BUILD_KIND = RELEASE_GL ]; then (cd wrench && cargo build --release --features=gl); fi
- if [ $BUILD_KIND = DEBUG_GFX ]; then (cd webrender && cargo check --no-default-features --features serde); fi
- if [ $BUILD_KIND = DEBUG_GFX ]; then (cd webrender && cargo check --no-default-features --features capture,serde); fi
- if [ $BUILD_KIND = DEBUG_GFX ]; then (cd webrender && cargo check --features profiler,capture); fi
- if [ $BUILD_KIND = DEBUG_GFX ]; then (cd webrender && cargo check --features replay); fi
# not supported with gfx-hal backend yet
# - if [ $BUILD_KIND = DEBUG_GFX ]; then (cd webrender && cargo check --no-default-features --features serialize_program); fi
- if [$BUILD_KIND = DEBUG_GFX]; then (cd wrench && cargo check --features env_logger,$BACKEND_TYPE); fi
- if [$BUILD_KIND = DEBUG_GFX]; then (cd examples && cargo check --features $BACKEND_TYPE); fi
- if [$BUILD_KIND = RELEASE_GFX]; then (cd wrench && cargo build --release --features $BACKEND_TYPE); fi
- if [$TRAVIS_RUST_VERSION == "nightly"]; then (cd webrender && cargo bench $BENCH_FEATURES); fi