1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/.travis.yml

55 lines
953 B
YAML
Raw Normal View History

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
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
rustup component add clippy --toolchain=nightly
2018-04-13 04:04:35 +02:00
fi
- export PATH=$PATH:~/.cargo/bin
script:
- cargo check --all
- cargo test --all --no-fail-fast
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
cargo clippy
fi