From ec4b7d236ff5ed12901928168ef4d9dd338b7c63 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 12 Apr 2019 13:41:30 +1000 Subject: [PATCH] fix (build): unit test - search stores data in a folder that needs to exist when test are run --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3aeca10b..a5c23cce 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,6 +28,7 @@ steps: - mv server/plugin/plg_* ../plugin - go get -t ./server/... - go build -ldflags "-X github.com/mickael-kerjean/filestash/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o dist/filestash server/main.go + - timeout 1 ./dist/filestash || true - name: build_js image: node:8-alpine @@ -55,7 +56,7 @@ steps: - apk --no-cache add git gcc libc-dev poppler-utils > /dev/null 2>&1 - cp ../test/assets/* /tmp/ - go get -t ../test/unit_go/... - - go test --tags "fts5" ../test/unit_go/... + - go test -v --tags "fts5" ../test/unit_go/... - name: test_js image: node:8-alpine