summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh2
-rwxr-xr-xscripts/test.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index a71a0899a..dde199549 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -6,6 +6,6 @@ set -eu
DEBUG() { [ ! -z "${DEBUG-}" ]; }
CGO_ENABLED=0 go build -trimpath \
- -tags "netgo osusergo static_build $(DEBUG && echo 'debugenv')" \
+ -tags "netgo osusergo static_build kvformat $(DEBUG && echo 'debugenv')" \
-ldflags="-s -w -extldflags '-static' -X 'main.Version=${VERSION:-$(git describe --tags --abbrev=0)}'" \
./cmd/gotosocial
diff --git a/scripts/test.sh b/scripts/test.sh
index befc82adf..5e9271821 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -7,7 +7,7 @@ set -e
# "./..." = all tests
# run tests with sqlite in-memory database
-GTS_DB_TYPE="sqlite" GTS_DB_ADDRESS=":memory:" go test -count 1 ./...
+GTS_DB_TYPE="sqlite" GTS_DB_ADDRESS=":memory:" go test -tags "netgo osusergo static_build kvformat" -count 1 ./...
# run tests with postgres database at either GTS_DB_ADDRESS or default localhost
-GTS_DB_TYPE="postgres" GTS_DB_ADDRESS="${GTS_DB_ADDRESS:-localhost}" go test -count 1 -p 1 ./...
+GTS_DB_TYPE="postgres" GTS_DB_ADDRESS="${GTS_DB_ADDRESS:-localhost}" go test -tags "netgo osusergo static_build kvformat" -count 1 -p 1 ./...