forked from althea-net/clarity
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
58 lines (53 loc) · 1.31 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
language: rust
cache: cargo
sudo: required
services: docker
rust:
- stable
- beta
env:
matrix:
- TARGET="x86_64-unknown-linux-gnu"
- TARGET="mips-unknown-linux-gnu"
- TARGET="mipsel-unknown-linux-gnu"
- TARGET="mips64-unknown-linux-gnuabi64"
- TARGET="mips64el-unknown-linux-gnuabi64"
- TARGET="aarch64-unknown-linux-gnu"
before_install:
- cargo install cross --force
script:
- cross build --target $TARGET --verbose --all
- cross test --target $TARGET --verbose --all
matrix:
allow_failures:
- rust: beta
fast_finish: true
include:
- rust: stable
env:
before_install:
script:
- rustup component add rustfmt-preview
- cargo fmt --all -- --check
- name: Clippy
rust: stable
env:
before_install:
before_script:
- rustup component add clippy-preview
script:
- cargo clippy --all-targets --all-features -- -D warnings
- name: Benchmark
rust: stable
env:
before_install:
script:
- cargo bench
- rust: stable
env:
before_install:
before_script:
- docker run -d -p 8545:8545 trufflesuite/ganache-cli:latest -a 10 -i 42 -e 1000 --debug
script:
# Runs expensive testnet tests
- cargo test --verbose -- --ignored testnet