forked from fschutt/azul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (55 loc) · 1.75 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
language: rust
cache: cargo
sudo: required
rust:
- 1.33.0
- 1.36.0
- nightly
os:
- linux
- osx
matrix:
fast_finish: true
allow_failures:
- rust: nightly
include:
- os: linux
dist: xenial
- os: osx
osx_image: xcode11
- os: osx
osx_image: xcode9.4
- os: osx
osx_image: xcode9.2
notifications:
email: false
# We can't test OpenGL 3.2 on Travis, the shader compilation fails
# because glium does a check first if it has a OGL 3.2 context
script:
- cargo check --verbose --all-features &&
cargo check --verbose --examples &&
cargo check --no-default-features &&
cargo check --no-default-features --features="svg" &&
cargo check --no-default-features --features="image_loading" &&
cargo check --no-default-features --features="logging" &&
cargo check --verbose --release --all-features &&
RUST_BACKTRACE=1 cargo test --verbose --all-features
install:
- PATH=$PATH:/home/travis/.cargo/bin
addons:
apt:
update: true
packages:
- libfreetype6-dev # for servo-fontconfig-sys
- libfontconfig1-dev # for servo-fontconfig-sys
- libcurl4-openssl-dev # for kcov
- libelf-dev # for kcov
- libdw-dev # for kcov
- cmake # for kcov
- binutils-dev # for kcov
- libiberty-dev # for kcov
after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make &&
sudo make install && cd ../.. &&
kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov $(find target/debug -maxdepth 1 -executable -name azul-\*)