From 2c87f3c78befedc49c07119496b1eec7666b4310 Mon Sep 17 00:00:00 2001 From: beac0n Date: Mon, 26 Aug 2024 21:20:30 +0200 Subject: [PATCH 1/3] fix ci --- clippy.toml | 1 + src/lib.rs | 1 + 2 files changed, 2 insertions(+) create mode 100644 clippy.toml diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 0000000..154626e --- /dev/null +++ b/clippy.toml @@ -0,0 +1 @@ +allow-unwrap-in-tests = true diff --git a/src/lib.rs b/src/lib.rs index 7d71fa7..2e2a38b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::too_long_first_doc_paragraph)] //! This file exposes all the modules that are needed by the client, server and commander /// persists the blocked list of deadlines From 4e21e4d423c95f921ed515701a90c02b9110e7b9 Mon Sep 17 00:00:00 2001 From: beac0n Date: Mon, 26 Aug 2024 21:22:36 +0200 Subject: [PATCH 2/3] make ci faster --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a083ef7..2615c7c 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ install_server: release echo "# update config /etc/ruroco/config.toml on server" echo "# start service with sudo systemctl start ruroco.service on server" -test_end_to_end: clean_test_end_to_end release +test_end_to_end: clean_test_end_to_end build sudo useradd --system ruroco --shell /bin/false || true ./target/release/client gen -k 4096 From 97eba55d350bcd3fd5881ab30d57dd82bdbb8d8d Mon Sep 17 00:00:00 2001 From: beac0n Date: Mon, 26 Aug 2024 23:02:09 +0200 Subject: [PATCH 3/3] fix ci --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2615c7c..5421dd9 100644 --- a/Makefile +++ b/Makefile @@ -58,11 +58,11 @@ install_server: release test_end_to_end: clean_test_end_to_end build sudo useradd --system ruroco --shell /bin/false || true - ./target/release/client gen -k 4096 + ./target/debug/client gen -k 4096 mkdir /tmp/ruroco_test - cp ./target/release/server /tmp/ruroco_test/server - cp ./target/release/commander /tmp/ruroco_test/commander + cp ./target/debug/server /tmp/ruroco_test/server + cp ./target/debug/commander /tmp/ruroco_test/commander mv ./ruroco_private.pem /tmp/ruroco_test @@ -83,7 +83,7 @@ test_end_to_end: clean_test_end_to_end build sudo systemctl start ruroco-commander.service sudo systemctl start ruroco.service - ./target/release/client send -a 127.0.0.1:80 -p /tmp/ruroco_test/ruroco_private.pem + ./target/debug/client send -a 127.0.0.1:80 -p /tmp/ruroco_test/ruroco_private.pem sleep 2