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 62
/
.travis.yml
104 lines (104 loc) · 3 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
dist: xenial
language: rust
matrix:
include:
- os: linux
rust: nightly
env: GTK=3.14 FEATURES=
- os: linux
rust: nightly
env: GTK=3.24 FEATURES="v2_48 log_macros"
- os: linux
rust: beta
env: GTK=3.14 FEATURES=
- os: linux
rust: beta
env: GTK=3.24 FEATURES="v2_48 log_macros"
- os: linux
rust: 1.40.0
env: GTK=3.14 FEATURES=
- os: linux
rust: 1.40.0
env: GTK=3.24 FEATURES="v2_48 log_macros"
- os: linux
rust: stable
env: GTK=3.14 FEATURES=
- os: linux
rust: stable
env: GTK=3.24 FEATURES="v2_48 log_macros"
- os: osx
rust: nightly
env: GTK=3.14 FEATURES=
# - os: osx
# rust: nightly
# env: GTK=3.24 FEATURES=v2_48
- os: osx
rust: beta
env: GTK=3.14 FEATURES=
# - os: osx
# rust: beta
# env: GTK=3.24 FEATURES=v2_48
- os: osx
rust: 1.40.0
env: GTK=3.14 FEATURES=
# - os: osx
# rust: 1.40.0
# env: GTK=3.24 FEATURES=v2_48
- os: osx
rust: stable
env: GTK=3.14 FEATURES=
# - os: osx
# rust: stable
# env: GTK=3.24 FEATURES=v2_48
- os: linux
rust: nightly
env: GTK=3.14 FEATURES= ARM=1 OTHER_TARGET="--target armv7-unknown-linux-gnueabihf"
- os: linux
rust: nightly
env: GTK=3.24 FEATURES="v2_48 log_macros" ARM=1 OTHER_TARGET="--target armv7-unknown-linux-gnueabihf"
addons:
apt:
packages:
- libgtk-3-dev
- libmount-dev
- python3
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
- if [[ "$ARM" == "1" ]]; then rustup target add armv7-unknown-linux-gnueabihf; fi
script:
- if [ "$TRAVIS_RUST_VERSION" == "beta" ]; then
rustup component add clippy;
cargo clippy --release;
fi
- if [ "$TRAVIS_RUST_VERSION" == "stable" ] && ! [ "$ARM" == "1" ]; then
rustup component add rustfmt;
make regen_check;
fi
- if ! [ "$ARM" == "1" ]; then
cargo doc --features "dox";
fi
- if ! [ "$ARM" == "1" ]; then
cargo test --features "$FEATURES";
fi
- if [ "$ARM" == "1" ]; then
PKG_CONFIG_ALLOW_CROSS=1 cargo build --features "$FEATURES" $OTHER_TARGET;
fi
- rustc --version
- python3 clone_tests/clone_compilation_errors.py
- 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 .;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_RUST_VERSION" == "stable"] && [ "$GTK" == "3.24" ]; then
rustup component add clippy;
cargo clippy --tests -- -D warnings;
fi