forked from gtk-rs/gtk4-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.05 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
dist: xenial
language: rust
matrix:
include:
- os: linux
rust: nightly
env: GTK=3.96 FEATURES=
- os: linux
rust: beta
env: GTK=3.96 FEATURES=
- os: linux
rust: stable
env: GTK=3.96 FEATURES=
- os: linux
rust: 1.36.0
env: GTK=3.96 FEATURES=
addons:
apt:
packages:
- libgtk-3-dev
- libmount-dev
script:
- rustc --version
- mkdir .cargo
- echo 'paths = ["."]' > .cargo/config
- git clone -q --depth 50 https://github.com/gtk-rs/examples4 _examples
- cd _examples
- ./build_travis.sh
- cd ..
- export PKG_CONFIG_PATH="$HOME/local/lib/pkgconfig:$HOME/local/share/pkgconfig"
- rustc --version
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$GTK" == "3.96" ]; then
rustup component add rustfmt;
make regen_check;
fi
- ./check_init_asserts
- cargo doc --features "dox,embed-lgpl-docs"
- cargo test --features "$FEATURES,embed-lgpl-docs"
# catch any sneaked in lgpl docs
- cargo build --features "$FEATURES,purge-lgpl-docs" --jobs 1
- git diff -R --exit-code