marine-rs-sdk-test/.circleci/config.yml
2022-04-11 19:56:49 +03:00

37 lines
957 B
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-2022-03-20
rustup default nightly-2022-03-20
rustup override set nightly-2022-03-20
rustup component add rustfmt
rustup component add clippy
cargo fmt --all -- --check --color always
cargo build
(cd crates/marine-test-macro-impl; cargo test)
cargo test -v --all-features
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
key: backendsdk01-{{ checksum "Cargo.toml" }}
workflows:
version: 2
fluence:
jobs:
- backend sdk