Alexey Proshutinskiy 31145f447e add tests, setup ci
2021-09-02 18:58:44 +03:00

37 lines
802 B
YAML

version: 2.1
orbs:
docker: circleci/docker@1.5.0
jobs:
Build and test Rust service:
docker:
- image: circleci/rust:latest
resource_class: xlarge
environment:
RUST_BACKTRACE: full
steps:
- checkout
- run: |
sudo bash .github/download_marine.sh
- restore_cache:
keys:
- connector-test00-{{ checksum "Cargo.lock" }}
- run: |
cd ./service
rustup target add wasm32-wasi
- run: ./build.sh
- run: |
cargo test --no-fail-fast --release --all-features
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
key: connector-test00-{{ checksum "Cargo.lock" }}
workflows:
version: 2
CircleCI:
jobs:
- Build and test Rust service