-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (47 loc) · 1.21 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
language: rust
cache:
directories:
- /home/travis/.cargo
git:
lfs_skip_smudge: true
os: linux
script:
- cargo build --workspace
- cargo test --workspace --exclude tiny-transport-bin
jobs:
include:
- rust: stable
- rust: beta
- rust: nightly
- name: Linting
before_script:
- rustup component add clippy
- rustup component add rustfmt
script:
- cargo clippy
- cargo clippy --tests
- cargo fmt --all -- --check
- name: Coverage
script:
- docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin sh -c "cargo tarpaulin" &&
bash <(curl -s https://codecov.io/bash)
- name: Build
install:
- cargo install wasm-pack
before_script:
- git lfs pull
script:
- cargo run --release import import/data/vbb.bzip -- store
- cargo run --release load
- wasm-pack build wasm --target web --out-dir www/wasm
before_deploy:
- rm wasm/www/wasm/.gitignore
deploy:
on:
branch: main
provider: pages:git
edge: true
token: $GITHUB_TOKEN
local_dir: wasm/www
allow_failures:
- rust: nightly