ci: install cargo-audit and clippy

This commit is contained in:
Georgios Konstantopoulos 2020-05-27 15:25:42 +03:00
parent a2eed17002
commit 2e5ef68219
No known key found for this signature in database
GPG Key ID: FA607837CD26EDBC
2 changed files with 11 additions and 23 deletions

View File

@ -1,7 +1,16 @@
version: 2.1 version: 2.1
# https://medium.com/@edouard.oger/rust-caching-on-circleci-using-sccache-c996344f0115
commands: commands:
setup-lints:
steps:
- run:
name: Install cargo-audit
command: cargo install cargo-audit
- run:
name: Install clippy
command: rustup component add clippy
# https://medium.com/@edouard.oger/rust-caching-on-circleci-using-sccache-c996344f0115
setup-sccache: setup-sccache:
steps: steps:
- run: - run:
@ -37,6 +46,7 @@ jobs:
- image: circleci/rust:latest - image: circleci/rust:latest
steps: steps:
- checkout - checkout
- setup-lints
- setup-sccache - setup-sccache
- restore-sccache-cache - restore-sccache-cache
- run: cargo test --all - run: cargo test --all

View File

@ -1,22 +0,0 @@
pragma solidity ^0.6.6;
contract SimpleStorage {
event ValueChanged(address indexed author, string oldValue, string newValue);
string _value;
constructor(string memory value) public {
emit ValueChanged(msg.sender, _value, value);
_value = value;
}
function getValue() view public returns (string memory) {
return _value;
}
function setValue(string memory value) public {
emit ValueChanged(msg.sender, _value, value);
_value = value;
}
}