forked from suharev7/clickhouse-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (46 loc) · 1.01 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
sudo: required
language: rust
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
services:
- docker
before_install:
- docker --version
- docker-compose --version
- docker-compose up -d
- |
if [ "$TRAVIS_RUST_VERSION" != "nightly" ]; then
rustup component add clippy
fi
- |
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo install -f cargo-travis;
export PATH=$HOME/.cargo/bin:$PATH;
fi
script:
- cargo test --all --verbose -- --test-threads 2
- |
if [ "$TRAVIS_RUST_VERSION" != "nightly" ]; then
cargo clippy --all-targets --all-features -- -D warnings;
fi
after_success:
- |
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo coveralls --exclude-pattern target,clickhouse-rs-cityhash-sys,tests;
fi