aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ci/Makefile')
-rw-r--r--ci/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/ci/Makefile b/ci/Makefile
new file mode 100644
index 0000000..69d6c97
--- /dev/null
+++ b/ci/Makefile
@@ -0,0 +1,19 @@
+all: build build-examples check-fmt check-clippy check-tests check-examples
+
+build:
+ cargo build
+
+build-examples:
+ cargo build --examples
+
+check-fmt:
+ cargo fmt --check
+
+check-clippy:
+ cargo clippy -- -Dwarnings -Aclippy::new_without_default
+
+check-tests:
+ cargo test
+
+check-examples:
+ cargo test --examples