diff --git a/.circleci/config.yml b/.circleci/config.yml index 929d848..3068f3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,25 +36,19 @@ jobs: steps: - checkout - run: - name: "install clippy & rustfmt" + name: "setup lint tools" command: | - rustup update - rustup component add clippy - rustup component add rustfmt - - run: - name: "fmt check" - command: | - cargo fmt -- --check + make lint-tools working_directory: hmcdk - run: - name: "clippy" + name: "lint" command: | - cargo clippy -- -D warnings + make lint working_directory: hmcdk - run: name: "test" command: | - cargo test + make test working_directory: hmcdk integration-test: diff --git a/hmcdk/Makefile b/hmcdk/Makefile new file mode 100644 index 0000000..9daef5e --- /dev/null +++ b/hmcdk/Makefile @@ -0,0 +1,12 @@ +lint-tools: + rustup component add clippy + rustup component add rustfmt + +lint: + cargo fmt -- --check + cargo clippy -- -D warnings + +test: + cargo test + +.PHONY: lint-tools lint test