2020-06-16 14:20:33 +03:00
|
|
|
version: 2.1
|
2022-02-18 18:26:06 +03:00
|
|
|
orbs:
|
|
|
|
node: circleci/node@5.0.0
|
|
|
|
|
2020-06-16 14:20:33 +03:00
|
|
|
jobs:
|
2021-05-10 12:51:22 +03:00
|
|
|
marine:
|
2020-06-16 14:20:33 +03:00
|
|
|
docker:
|
|
|
|
- image: circleci/rust:latest
|
2021-02-12 13:44:52 +03:00
|
|
|
resource_class: xlarge
|
2020-06-16 14:20:33 +03:00
|
|
|
environment:
|
2021-02-12 13:44:52 +03:00
|
|
|
RUST_BACKTRACE: full
|
2020-06-16 14:20:33 +03:00
|
|
|
#RUST_TEST_THREADS: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2021-05-10 12:51:22 +03:00
|
|
|
- marine04-{{ checksum "Cargo.lock" }}
|
2022-02-18 18:26:06 +03:00
|
|
|
|
|
|
|
- node/install:
|
|
|
|
node-version: '16.14'
|
|
|
|
|
2020-06-16 14:20:33 +03:00
|
|
|
- run: |
|
2021-09-02 15:49:02 +03:00
|
|
|
rustup toolchain install nightly-2021-05-21
|
|
|
|
rustup default nightly-2021-05-21
|
|
|
|
rustup override set nightly-2021-05-21
|
2021-02-04 15:32:45 +03:00
|
|
|
|
2021-09-02 15:49:02 +03:00
|
|
|
rustup component add rustfmt --toolchain nightly-2021-05-21
|
|
|
|
rustup component add clippy --toolchain nightly-2021-05-21
|
2020-10-21 22:21:16 +03:00
|
|
|
rustup target add wasm32-wasi
|
|
|
|
|
2022-02-18 18:26:06 +03:00
|
|
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
|
2021-03-16 13:51:59 +03:00
|
|
|
cargo install --path tools/cli
|
2020-06-16 14:20:33 +03:00
|
|
|
|
|
|
|
cargo fmt --all -- --check --color always
|
2021-05-11 15:44:11 +03:00
|
|
|
cargo check -v --all-features -p marine-runtime -p fluence-faas -p fluence-app-service -p marine -p mrepl
|
2020-06-16 14:20:33 +03:00
|
|
|
|
2022-02-18 18:26:06 +03:00
|
|
|
(
|
|
|
|
cd web-runtime
|
|
|
|
./build.sh
|
|
|
|
cd npm-package
|
|
|
|
npm i
|
|
|
|
npm run build
|
|
|
|
)
|
2020-12-17 18:46:01 +03:00
|
|
|
(cd ./examples; ./build.sh)
|
2021-03-16 13:51:59 +03:00
|
|
|
(cd ./fluence-faas/tests/wasm_tests; ./build.sh)
|
2020-10-21 22:21:16 +03:00
|
|
|
|
2021-05-19 18:58:24 +03: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-09-29 12:58:10 +03:00
|
|
|
cargo clippy
|
2020-06-16 14:20:33 +03:00
|
|
|
|
2022-02-18 18:26:06 +03:00
|
|
|
(
|
|
|
|
cd web-runtime/npm-package
|
|
|
|
npm run test
|
|
|
|
)
|
|
|
|
|
2020-06-16 14:20:33 +03:00
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.cargo
|
|
|
|
- ~/.rustup
|
2021-05-10 12:51:22 +03:00
|
|
|
key: marine04-{{ checksum "Cargo.lock" }}
|
2020-06-16 14:20:33 +03:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2.1
|
2021-05-10 12:51:22 +03:00
|
|
|
marine:
|
2020-06-16 14:20:33 +03:00
|
|
|
jobs:
|
2021-05-10 12:51:22 +03:00
|
|
|
- marine
|