2018-04-13 04:04:35 +02:00
|
|
|
language: rust
|
2020-04-29 22:34:22 +02:00
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ppa:chris-lea/redis-server
|
|
|
|
packages:
|
|
|
|
- redis-server
|
2018-04-13 04:04:35 +02:00
|
|
|
|
2019-09-29 16:28:00 +02:00
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
|
2018-04-13 04:04:35 +02:00
|
|
|
cache:
|
|
|
|
apt: true
|
2019-09-02 11:20:15 +02:00
|
|
|
directories:
|
|
|
|
- $HOME/.cargo
|
|
|
|
- $HOME/.rustup
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -rf $HOME/.cargo/registry
|
2018-04-13 04:04:35 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- rust: stable
|
|
|
|
- rust: beta
|
|
|
|
- rust: nightly
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# - RUSTFLAGS="-C link-dead-code"
|
2020-04-29 22:34:22 +02:00
|
|
|
- OPENSSL_VERSION=openssl-1.1.1
|
2018-04-13 04:04:35 +02:00
|
|
|
|
|
|
|
before_install:
|
2020-04-29 22:34:22 +02:00
|
|
|
- sudo apt-get -qq update
|
|
|
|
- sudo apt-get -y install libssl-dev libelf-dev libdw-dev binutils-dev libiberty-dev
|
2018-04-13 04:04:35 +02:00
|
|
|
|
|
|
|
# Add clippy
|
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
2019-09-02 11:20:15 +02:00
|
|
|
rustup component add clippy --toolchain=nightly
|
2018-04-13 04:04:35 +02:00
|
|
|
fi
|
|
|
|
- export PATH=$PATH:~/.cargo/bin
|
|
|
|
|
|
|
|
script:
|
2019-03-30 17:33:18 +01:00
|
|
|
- cargo check --all
|
2019-09-29 17:02:38 +02:00
|
|
|
- cargo test --all --no-fail-fast
|
2019-09-02 11:20:15 +02:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
|
|
|
cargo clippy
|
|
|
|
fi
|