forked from thoth-pub/thoth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 826 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
dist: bionic
language: rust
rust:
- stable
- beta
env:
- THOTH_API=http://localhost:8000
before_install:
- sudo apt-get -y install pkg-config nodejs-dev node-gyp libssl1.0-dev npm
- sudo npm install -g [email protected]
- sudo npm install -g [email protected]
- sudo n 12.19.0
- sudo npm install -g [email protected]
addons:
apt:
update: true
install:
- cargo install wasm-pack
- rustup component add rustfmt
- rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
script:
- wasm-pack build thoth-app/ --target web --release
- rollup thoth-app/main.js --format iife --file thoth-app/pkg/thoth_app.js
- cargo build --verbose
- cargo test --workspace --verbose
- cargo clippy --all --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check