2020-05-27 11:55:34 +00:00
|
|
|
version: 2.1
|
|
|
|
|
2020-05-25 09:23:50 +00:00
|
|
|
commands:
|
2020-05-27 12:25:42 +00:00
|
|
|
setup-lints:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: Install clippy
|
|
|
|
command: rustup component add clippy
|
|
|
|
|
2020-05-24 18:58:01 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/rust:latest
|
|
|
|
steps:
|
|
|
|
- checkout
|
2020-05-27 12:25:42 +00:00
|
|
|
- setup-lints
|
2020-06-15 08:46:07 +00:00
|
|
|
- run:
|
|
|
|
name: Reduce codegen Units
|
|
|
|
# If we don't include this, the linker runs out of memory when building
|
|
|
|
# the project on CI. We don't include this normally though because
|
|
|
|
# it should be able to build with more units on other machines
|
|
|
|
command: printf "[profile.dev]\ncodegen-units = 1\n" >> Cargo.toml
|
2020-06-03 21:05:05 +00:00
|
|
|
- run:
|
|
|
|
name: tests
|
|
|
|
# skip these temporarily until we get ganache-cli and solc on CI
|
2020-06-15 12:40:06 +00:00
|
|
|
command: cargo test --all -- --skip deploy_and_call_contract --skip send_eth --skip watch_events --skip get_past_events --skip test_pending_tx
|
2020-05-24 18:58:01 +00:00
|
|
|
- run:
|
|
|
|
name: Check style
|
|
|
|
command: |
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
cargo clippy --all-targets --all-features -- -D warnings
|