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:
|
2020-08-23 01:33:05 +00:00
|
|
|
- fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}-{{ checksum "fluence-app-service/Cargo.toml" }}
|
2020-06-16 11:20:33 +00:00
|
|
|
- run: |
|
|
|
|
rustup toolchain install nightly
|
|
|
|
rustup component add rustfmt
|
|
|
|
rustup component add clippy --toolchain nightly
|
|
|
|
|
|
|
|
cargo fmt --all -- --check --color always
|
2020-08-23 01:33:05 +00:00
|
|
|
cargo +nightly check -v --all-features
|
2020-06-16 11:20:33 +00:00
|
|
|
cargo +nightly test -v --all-features
|
|
|
|
cargo +nightly clippy -v
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.cargo
|
|
|
|
- ~/.rustup
|
2020-08-23 01:33:05 +00:00
|
|
|
key: fce01-{{ checksum "engine/Cargo.toml" }}-{{ checksum "fluence-faas/Cargo.toml" }}-{{ checksum "fluence-app-service/Cargo.toml" }}
|
2020-06-16 11:20:33 +00:00
|
|
|
|
|
|
|
examples:
|
|
|
|
docker:
|
|
|
|
- image: circleci/rust:latest
|
|
|
|
environment:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
#RUST_TEST_THREADS: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
2020-08-08 20:29:16 +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:29:16 +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
|