From 6bbd4146a822cf2931b2087cc9cbcb2e8858ecc1 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 2 May 2024 09:22:39 +0200 Subject: [PATCH] Add scripts (#1138) * Add test build script * Add test script * Ignore test binary --- .gitignore | 1 + bin/build.sh | 3 +++ bin/format.sh | 3 +++ bin/test.sh | 3 +++ 4 files changed, 10 insertions(+) create mode 100755 bin/build.sh create mode 100755 bin/format.sh create mode 100755 bin/test.sh diff --git a/.gitignore b/.gitignore index 1f3baf919..c7963cd6f 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ _testmain.go out/ release/ go-exercism +testercism # Intellij /.idea diff --git a/bin/build.sh b/bin/build.sh new file mode 100755 index 000000000..f2ed29c5d --- /dev/null +++ b/bin/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +go build -o testercism ./exercism/main.go diff --git a/bin/format.sh b/bin/format.sh new file mode 100755 index 000000000..25c19b2e3 --- /dev/null +++ b/bin/format.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +go fmt ./... diff --git a/bin/test.sh b/bin/test.sh new file mode 100755 index 000000000..062c46972 --- /dev/null +++ b/bin/test.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +go test ./...