forked from nervosnetwork/muta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (42 loc) · 1013 Bytes
/
.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
language: rust
dist: bionic
sudo: false
# cache sccache and its cache
cache:
apt: true
directories:
- $TRAVIS_HOME/.cargo/
- $TRAVIS_HOME/.cache/sccache
git:
depth: 1
submodules: false
if: 'branch IN (master, develop, staging, trying) OR type != push OR fork = true OR tag =~ ^v'
addons:
apt:
packages:
- gcc
- librocksdb5.8
- librocksdb-dev
matrix:
include:
- rust: nightly
install: ./devtools/ci/install.sh
script:
# Output something every 10 minutes or Travis kills the job
- while sleep 5m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- ./devtools/ci/script.sh
# Killing background sleep loop
- kill %1
# use sccache and limit cache size to 2G, so travis cache command dont timeout
env:
global:
- RUST_BACKTRACE=full
- RUSTC_WRAPPER=sccache
- SCCACHE_CACHE_SIZE="2G"
- USE_SYS_ROCKSDB: true
- FMT: true
- CHECK: true
- TEST: true
- E2E: true
before_cache:
- rm -rf "$TRAVIS_HOME"/.cargo/registry"