diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-10-21 19:10:17 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-10-21 19:38:24 -0700 |
commit | 37f93d5127eb31fb0566f1a95b6016980cf2b99b (patch) | |
tree | 9b8284dacc4812bec0e7cfe788e1f8d12d38374e | |
parent | 5517eebafe0cbacb2f5d0d495fb2dca3ba4f1f82 (diff) |
Make sure integration tests are marked as failed in Github Actions
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,6 +6,7 @@ LD_FLAGS := "-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app PKG_LIST := $(shell go list ./... | grep -v /vendor/) DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable +export PGPASSWORD := postgres export GO111MODULE=on .PHONY: generate \ @@ -99,7 +100,7 @@ test: go test -mod=vendor -cover -race -count=1 ./... lint: - @ golint -set_exit_status ${PKG_LIST} + golint -set_exit_status ${PKG_LIST} integration-test: psql -U postgres -c 'drop database if exists miniflux_test;' @@ -109,7 +110,7 @@ integration-test: go build -mod=vendor -o miniflux-test main.go DATABASE_URL=$(DB_URL) ./miniflux-test -debug >/tmp/miniflux.log 2>&1 & echo "$$!" > "/tmp/miniflux.pid" while ! echo exit | nc localhost 8080; do sleep 1; done >/dev/null - go test -mod=vendor -v -tags=integration -count=1 miniflux.app/tests || cat /tmp/miniflux.log + go test -mod=vendor -v -tags=integration -count=1 miniflux.app/tests clean-integration-test: @ kill -9 `cat /tmp/miniflux.pid` |