aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build2
-rwxr-xr-xscripts/coverage8
-rwxr-xr-xscripts/lint2
-rwxr-xr-xscripts/package6
4 files changed, 18 insertions, 0 deletions
diff --git a/scripts/build b/scripts/build
new file mode 100755
index 0000000..832ca13
--- /dev/null
+++ b/scripts/build
@@ -0,0 +1,2 @@
+#!/bin/bash
+go build -o target/gomuks
diff --git a/scripts/coverage b/scripts/coverage
new file mode 100755
index 0000000..c52d4a6
--- /dev/null
+++ b/scripts/coverage
@@ -0,0 +1,8 @@
+#!/bin/bash
+mkdir -p target/
+go test ./... -coverprofile=target/coverage.out
+if [ ! -z $1 ]; then
+ go tool cover -html=coverage.out -o $1
+else
+ go tool cover -html=coverage.out
+fi
diff --git a/scripts/lint b/scripts/lint
new file mode 100755
index 0000000..06957b8
--- /dev/null
+++ b/scripts/lint
@@ -0,0 +1,2 @@
+#!/bin/bash
+golint ./... | grep -v "should have comment" | grep -v "vendor/"
diff --git a/scripts/package b/scripts/package
new file mode 100755
index 0000000..158439f
--- /dev/null
+++ b/scripts/package
@@ -0,0 +1,6 @@
+#!/bin/bash
+mkdir -p deb/usr/bin/
+mkdir -p target/
+go build -o deb/usr/bin/gomuks
+version=$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }')
+dpkg-deb --build deb target/gomuks-$version.deb