2020-06-16 11:20:33 +00:00
|
|
|
version: 2.1
|
|
|
|
jobs:
|
|
|
|
fce:
|
|
|
|
docker:
|
|
|
|
- image: circleci/rust:latest
|
|
|
|
environment:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
#RUST_TEST_THREADS: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}
|
|
|
|
- run: |
|
|
|
|
rustup toolchain install nightly
|
|
|
|
rustup component add rustfmt
|
|
|
|
rustup component add clippy --toolchain nightly
|
|
|
|
|
|
|
|
cd engine
|
|
|
|
cargo fmt --all -- --check --color always
|
|
|
|
cargo +nightly build -v --all-features
|
|
|
|
cargo +nightly test -v --all-features
|
|
|
|
cargo +nightly clippy -v
|
|
|
|
|
|
|
|
cd ../fluence-faas
|
|
|
|
cargo fmt --all -- --check --color always
|
|
|
|
cargo +nightly build -v --all-features
|
|
|
|
cargo +nightly test -v --all-features
|
|
|
|
cargo +nightly clippy -v
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.cargo
|
|
|
|
- ~/.rustup
|
|
|
|
key: fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}
|
|
|
|
|
|
|
|
examples:
|
|
|
|
docker:
|
|
|
|
- image: circleci/rust:latest
|
|
|
|
environment:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
#RUST_TEST_THREADS: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2020-08-08 20:07:21 +00:00
|
|
|
- examples01-{{ checksum "examples/ipfs_node/effector/Cargo.toml" }}-{{ checksum "examples/ipfs_node/pure/Cargo.toml" }}
|
2020-06-16 11:20:33 +00:00
|
|
|
- run: |
|
|
|
|
rustup toolchain install nightly
|
|
|
|
rustup component add rustfmt
|
|
|
|
rustup component add clippy
|
|
|
|
cargo install cargo-wasi
|
|
|
|
|
2020-08-08 20:07:21 +00:00
|
|
|
cd examples/ipfs_node/effector
|
2020-06-16 11:20:33 +00:00
|
|
|
cargo fmt --all -- --check --color always
|
|
|
|
cargo wasi build
|
2020-07-17 12:03:46 +00:00
|
|
|
cargo clippy -v --target wasm32-wasi
|
2020-06-16 11:20:33 +00:00
|
|
|
|
2020-08-08 20:07:21 +00:00
|
|
|
cd ../pure
|
2020-06-16 11:20:33 +00:00
|
|
|
cargo fmt --all -- --check --color always
|
|
|
|
cargo wasi build
|
2020-07-17 12:03:46 +00:00
|
|
|
cargo clippy -v --target wasm32-wasi
|
2020-06-16 11:20:33 +00:00
|
|
|
|
2020-07-09 14:06:08 +00:00
|
|
|
# cd ../../../../tools/wit_embedder
|
|
|
|
# cargo fmt --all -- --check --color always
|
|
|
|
# cargo build -v --all-features
|
|
|
|
# cargo clippy -v
|
2020-06-16 11:20:33 +00:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.cargo
|
|
|
|
- ~/.rustup
|
|
|
|
key: examples01-{{ checksum "examples/ipfs_node/wasm/ipfs_node/Cargo.toml" }}-{{ checksum "examples/ipfs_node/wasm/ipfs_rpc/Cargo.toml" }}-{{ checksum "examples/ipfs_node/Cargo.toml" }}
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2.1
|
|
|
|
fce:
|
|
|
|
jobs:
|
|
|
|
- fce
|
|
|
|
- examples
|