forked from gtk-rs/cairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (71 loc) · 1.99 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
dist: xenial
language: rust
matrix:
include:
- os: linux
rust: nightly
env: GTK=3.14 FEATURES=
- os: linux
rust: nightly
env: GTK=3.24 FEATURES=
- os: linux
rust: beta
env: GTK=3.14 FEATURES=
- os: linux
rust: beta
env: GTK=3.24 FEATURES=
- os: linux
rust: 1.39.0
env: GTK=3.14 FEATURES=
- os: linux
rust: 1.39.0
env: GTK=3.24 FEATURES=
- os: osx
rust: nightly
env: GTK=3.14 FEATURES=
# - os: osx
# rust: nightly
# env: GTK=3.24 FEATURES=v3_16
- os: osx
rust: beta
env: GTK=3.14 FEATURES=
# - os: osx
# rust: beta
# env: GTK=3.24 FEATURES=v3_16
- os: osx
rust: stable
env: GTK=3.14 FEATURES=
# - os: osx
# rust: stable
# env: GTK=3.24 FEATURES=v3_16
sudo: true
addons:
apt:
packages:
- libgtk-3-dev
- libmount-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python@2; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gtk+3 cairo atk; fi
script:
- rustc --version
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$GTK" == "3.14" ]; then
rustup component add rustfmt;
cargo fmt --all -- --check;
fi
- cargo doc --features "dox,embed-lgpl-docs"
- cargo test --features "$FEATURES,png,pdf,svg,pdf,xcb"
- cargo test --no-default-features --features "$FEATURES,png,pdf,svg,pdf,xcb"
- cd cairo-sys-rs
- cargo rustdoc --no-default-features --features "dox xlib png pdf svg ps xcb use_glib win32-surface"
- cargo rustdoc --no-default-features --features "dox xlib png pdf svg ps xcb use_glib"
- cd ..
# catch any sneaked in lgpl docs
- cargo build --features purge-lgpl-docs
- git diff -R --exit-code
- mkdir .cargo
- echo 'paths = [".", "./cairo-sys-rs"]' > .cargo/config
- git clone -q --depth 50 -b pending https://github.com/gtk-rs/examples _examples
- cd _examples
- ./build_travis.sh