forked from use-ink/ink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (61 loc) · 1.53 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
language: rust
cache: cargo
dist: trusty
sudo: true
rust:
# - stable
# - beta
- nightly
# matrix:
# allow_failures:
# - rust: stable
# - rust: beta
env:
global:
- RUSTFLAGS="-C link-dead-code"
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- libiberty-dev
- g++
- cmake
- zlib1g-dev
install:
# Print rustc and cargo versions
- rustc -vV
- cargo -vV
# Install cargo-kcov Cargo plugin
- cargo install --force cargo-kcov
- cargo kcov -vV
# Install kcov binary
- wget https://github.com/SimonKagstrom/kcov/archive/v36.tar.gz
- tar xzf v36.tar.gz
- pushd kcov-36
- mkdir build
- pushd build
- cmake ..
- make
- sudo make install # Puts kcov in the default location usually /usr/local/bin/kcov
- kcov --version
- popd
- popd
# Export cargo binaries, python and misc settings
- export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$HOME/Library/Python/2.7/bin:$PATH
# Print current work directory state as directions.
- ls -lah
before_script:
- rustup component add clippy rustfmt
- rustup target add wasm32-unknown-unknown
script:
- |
cargo check --verbose --all --all-features &&
cargo fmt --verbose --all -- --check
cargo clippy --verbose --all --all-features -- -D warnings &&
cargo test --verbose --all --all-features &&
cargo kcov --verbose --coveralls --all --no-clean-rebuild &&
cargo build --verbose --all --release --target=wasm32-unknown-unknown &&
bash <(curl -s https://codecov.io/bash)