This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
.travis.yml
54 lines (54 loc) · 1.59 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
dist: xenial
language: rust
os:
- linux
- osx
rust:
- nightly
- beta
- stable
- 1.40.0
env:
- GTK=3.14 FEATURES=
- GTK=3.24 FEATURES=v3_16
jobs:
exclude:
- os: osx
env: GTK=3.24 FEATURES=v3_16
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 libffi gtk+3 cairo atk; fi
script:
- rustc --version
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$GTK" == "3.14" ]; then
rustup component add rustfmt;
make regen_check;
fi
- 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
- rustc --version
- mkdir .cargo
- echo 'paths = ["."]' > .cargo/config
- git clone -q --depth 50 -b pending https://github.com/gtk-rs/examples _examples
- cd _examples
- ./build_travis.sh
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$GTK" == "3.14" ]; then
cd ..;
git clone https://github.com/gtk-rs/checker;
cd checker && cargo build --release;
cd .. && ./checker/target/release/checker .;
./checker/check_init_asserts;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_RUST_VERSION" == "stable"] && [ "$GTK" == "3.24" ]; then
rustup component add clippy;
cargo clippy --features "$FEATURES,embed-lgpl-docs" -- -D warnings;
fi