2020-06-16 11:20:33 +00:00
|
|
|
version: 2.1
|
|
|
|
jobs:
|
|
|
|
fce:
|
|
|
|
docker:
|
|
|
|
- image: circleci/rust:latest
|
|
|
|
environment:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
#RUST_TEST_THREADS: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2021-02-04 12:32:45 +00:00
|
|
|
- fce04-{{ checksum "Cargo.lock" }}
|
2020-06-16 11:20:33 +00:00
|
|
|
- run: |
|
2021-02-04 12:32:45 +00:00
|
|
|
rustup toolchain install nightly-2020-12-15
|
|
|
|
rustup default nightly-2020-12-15
|
|
|
|
rustup override set nightly-2020-12-15
|
|
|
|
|
|
|
|
rustup component add rustfmt --toolchain nightly-2020-12-15
|
|
|
|
rustup component add clippy --toolchain nightly-2020-12-15
|
2020-10-21 19:21:16 +00:00
|
|
|
rustup target add wasm32-wasi
|
|
|
|
|
|
|
|
cargo install fcli
|
2020-06-16 11:20:33 +00:00
|
|
|
|
|
|
|
cargo fmt --all -- --check --color always
|
2021-02-04 12:32:45 +00:00
|
|
|
cargo check -v --all-features
|
2020-06-16 11:20:33 +00:00
|
|
|
|
2020-12-17 15:46:01 +00:00
|
|
|
(cd ./examples; ./build.sh)
|
2020-10-21 19:21:16 +00:00
|
|
|
|
2021-02-04 12:32:45 +00:00
|
|
|
cargo test --release -v --all-features
|
|
|
|
cargo clippy -v
|
2020-06-16 11:20:33 +00:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.cargo
|
|
|
|
- ~/.rustup
|
2021-02-04 12:32:45 +00:00
|
|
|
key: fce04-{{ checksum "Cargo.lock" }}
|
2020-06-16 11:20:33 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2.1
|
|
|
|
fce:
|
|
|
|
jobs:
|
|
|
|
- fce
|