marine-rs-sdk-test/.circleci/config.yml
2021-05-10 13:50:52 +03:00

41 lines
1.1 KiB
YAML

version: 2
jobs:
backend sdk:
docker:
- image: circleci/rust:latest
environment:
RUST_BACKTRACE: 1
RUST_TEST_THREADS: 1
steps:
- checkout
- restore_cache:
keys:
- backendsdk01-{{ checksum "Cargo.toml" }}
- run: | #TODO: enable 'stable' and 'beta' once `allocator_api` becomes stable
rustup toolchain install nightly-2021-02-27
rustup default nightly-2021-02-27
rustup override set nightly-2021-02-27
rustup target add wasm32-wasi
rustup component add rustfmt
rustup component add clippy
cargo fmt --all -- --check --color always
(cd fluence; cargo build -v --target wasm32-wasi --all-features)
(cd fluence; cargo clippy -v --target wasm32-wasi)
(cd fluence-test; cargo build)
(cd crates/marine-macro-impl; cargo test)
TARGET=wasm32-wasi cargo test -v --all-features
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
key: backendsdk01-{{ checksum "Cargo.toml" }}
workflows:
version: 2
fluence:
jobs:
- backend sdk