This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
69 lines (69 loc) · 1.69 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
language: rust
sudo: false
matrix:
fast_finish: true
include:
- rust: nightly
env: FEATURES="--features nightly"
- rust: stable
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- build-essential
- curl
- expect
- cmake
- pkg-config
- zlib1g-dev
- libssh2-1-dev
- libssl-dev
sources:
- kalakris-cmake
cache:
apt: true
directories:
- target/debug/deps
- target/debug/build
- target/release/deps
notifications:
email:
on_success: never
on_failure: never
branches:
only:
- master
- develop
script:
- |
cargo test -- --test-threads=1 &&
cargo test --release -- --test-threads=1
before_script:
- 'gem install redis'
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
- |
if [[ "$TRAVIS_RUST_VERSION" != stable ]] && [[ "$TRAVIS_BRANCH" == "this doesnt work yet, it segaults, but check back later" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
- |
./tests/scripts/install_redis_centralized.sh &&
redis-server --daemonize yes
- "./tests/scripts/install_redis_clustered.sh"
after_success:
- |
if [[ "$TRAVIS_RUST_VERSION" != stable ]] && [[ "$TRAVIS_BRANCH" == "this doesnt work yet, it segfaults, but check back later" ]]; then
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
fi
- redis-cli -p 6379 shutdown
- "$TRAVIS_BUILD_DIR/tests/tmp/redis_cluster_$REDIS_VERSION/redis-$REDIS_VERSION/utils/create-cluster/create-cluster stop"
env:
global:
- RUST_BACKTRACE=1
- REDIS_VERSION=5.0.5
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- PATH=$PATH:$TRAVIS_BUILD_DIR/tests/tmp/redis-$REDIS_VERSION/src