marine/.circleci/config.yml

46 lines
1.4 KiB
YAML
Raw Normal View History

2020-06-16 11:20:33 +00:00
version: 2.1
jobs:
2021-05-10 09:51:22 +00:00
marine:
2020-06-16 11:20:33 +00:00
docker:
- image: circleci/rust:latest
resource_class: xlarge
2020-06-16 11:20:33 +00:00
environment:
RUST_BACKTRACE: full
2020-06-16 11:20:33 +00:00
#RUST_TEST_THREADS: 1
steps:
- checkout
- restore_cache:
keys:
2021-05-10 09:51:22 +00:00
- marine04-{{ checksum "Cargo.lock" }}
2020-06-16 11:20:33 +00:00
- run: |
2021-04-19 10:34:05 +00:00
rustup toolchain install nightly-2021-03-24
rustup default nightly-2021-03-24
rustup override set nightly-2021-03-24
2021-04-19 10:34:05 +00:00
rustup component add rustfmt --toolchain nightly-2021-03-24
rustup component add clippy --toolchain nightly-2021-03-24
2020-10-21 19:21:16 +00:00
rustup target add wasm32-wasi
2021-03-16 10:51:59 +00:00
cargo install --path tools/cli
2020-06-16 11:20:33 +00:00
cargo fmt --all -- --check --color always
2021-05-11 12:44:11 +00:00
cargo check -v --all-features -p marine-runtime -p fluence-faas -p fluence-app-service -p marine -p mrepl
2020-06-16 11:20:33 +00:00
(cd ./examples; ./build.sh)
2021-03-16 10:51:59 +00:00
(cd ./fluence-faas/tests/wasm_tests; ./build.sh)
2020-10-21 19:21:16 +00:00
2021-05-19 15:58:24 +00:00
cargo test --release -v --all-features -p marine-it-generator -p marine-runtime -p fluence-faas -p fluence-app-service -p marine -p mrepl
2021-05-11 12:44:11 +00:00
cargo clippy -v -p marine-runtime -p fluence-faas -p fluence-app-service -p marine -p mrepl
2020-06-16 11:20:33 +00:00
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
2021-05-10 09:51:22 +00:00
key: marine04-{{ checksum "Cargo.lock" }}
2020-06-16 11:20:33 +00:00
workflows:
version: 2.1
2021-05-10 09:51:22 +00:00
marine:
2020-06-16 11:20:33 +00:00
jobs:
2021-05-10 09:51:22 +00:00
- marine