From bdd9c58caefaca934ea41a848d1830b144e66620 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 1 Oct 2019 18:07:32 -0700 Subject: [PATCH] Update all CI scripts and mark as executable --- bin/dev-plugin.sh | 0 bin/install-dev-plugin.sh | 0 bin/run-all-tests.sh | 6 ++++++ bin/run-cli-tests.sh | 9 +++++++++ bin/run-plugin-tests.sh | 14 +++++++++++++- 5 files changed, 28 insertions(+), 1 deletion(-) mode change 100644 => 100755 bin/dev-plugin.sh mode change 100644 => 100755 bin/install-dev-plugin.sh create mode 100755 bin/run-all-tests.sh create mode 100755 bin/run-cli-tests.sh diff --git a/bin/dev-plugin.sh b/bin/dev-plugin.sh old mode 100644 new mode 100755 diff --git a/bin/install-dev-plugin.sh b/bin/install-dev-plugin.sh old mode 100644 new mode 100755 diff --git a/bin/run-all-tests.sh b/bin/run-all-tests.sh new file mode 100755 index 00000000..e17aafa4 --- /dev/null +++ b/bin/run-all-tests.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +./bin/run-cli-tests.sh +./bin/run-plugin-tests.sh \ No newline at end of file diff --git a/bin/run-cli-tests.sh b/bin/run-cli-tests.sh new file mode 100755 index 00000000..8f1b49a2 --- /dev/null +++ b/bin/run-cli-tests.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +cargo test --all --locked +cargo fmt -- --check + +touch src/lib.rs # Nudge Rust source to make Clippy actually check things +cargo clippy \ No newline at end of file diff --git a/bin/run-plugin-tests.sh b/bin/run-plugin-tests.sh index 9d8672d7..ecbf0c96 100755 --- a/bin/run-plugin-tests.sh +++ b/bin/run-plugin-tests.sh @@ -11,4 +11,16 @@ rojo build plugin/place.project.json -o "$PLACE_FILE" remodel bin/put-plugin-in-test-place.lua "$PLUGIN_FILE" "$PLACE_FILE" -run-in-roblox -s plugin/testBootstrap.server.lua "$PLACE_FILE" \ No newline at end of file +run-in-roblox -s plugin/testBootstrap.server.lua "$PLACE_FILE" + +pushd plugin +luacheck src +popd + +pushd rojo-plugin-http +luacheck src +popd + +pushd rojo-plugin-log +luacheck src +popd \ No newline at end of file