marine/.circleci/config.yml

59 lines
1.2 KiB
YAML
Raw Normal View History

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-09-22 22:14:54 +00:00
- fce03-{{ checksum "Cargo.lock" }}
2020-06-16 11:20:33 +00:00
- run: |
rustup toolchain install nightly
rustup component add rustfmt
rustup component add clippy --toolchain nightly
2020-10-21 19:21:16 +00:00
rustup target add wasm32-wasi
cargo install fcli
2020-06-16 11:20:33 +00:00
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
2020-10-21 19:21:16 +00:00
cd ./examples/call_parameters/
./build.sh
2020-06-16 11:20:33 +00:00
2020-10-21 19:21:16 +00:00
cd ../greeting/
./build.sh
2020-06-16 11:20:33 +00:00
2020-10-21 19:21:16 +00:00
cd ../ipfs-node/
./build.sh
2020-06-16 11:20:33 +00:00
2020-10-21 19:21:16 +00:00
cd ../records/
./build.sh
2020-12-01 08:49:49 +00:00
cd ../url-downloader/
2020-10-21 19:21:16 +00:00
./build.sh
cd ../../fluence-faas/tests/wasm_tests/
cd ../../
cargo +nightly test --release -v --all-features
cargo +nightly clippy -v
2020-06-16 11:20:33 +00:00
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
2020-10-21 19:21:16 +00:00
key: fce03-{{ checksum "Cargo.lock" }}
2020-06-16 11:20:33 +00:00
workflows:
version: 2.1
fce:
jobs:
- fce