blob: 4ec484069c05d0dca41590b81aae626781323092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
language: rust
cache: cargo
# According to travis docs, rust team appreciates if we test against all channels.
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- rustup component add rustfmt clippy
- sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev
script:
- cargo fmt --all -- --check
- cargo build
- cargo build --no-default-features # build without webkit2gtk
- cargo clippy -- -D warnings # run clippy
- cargo clippy --no-default-features -- -D warnings # run clippy without webkit2gtk
- cargo test
- cargo test --no-default-features # test without webkit2gtk
|