ci: parallel
continuous-integration/drone the build was successful Details

This commit is contained in:
Geno 2021-06-23 13:32:27 +02:00
parent b29a85551f
commit 679191c55b
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ services:
pipeline: pipeline:
lint: lint:
image: golang:latest image: golang:latest
group: test
commands: commands:
- apt update - apt update
- apt install python3 --yes - apt install python3 --yes
@ -17,6 +18,7 @@ pipeline:
test-coverage: test-coverage:
image: golang:latest image: golang:latest
group: test
commands: commands:
- go get -d -t ./... - go get -d -t ./...
- go test -ldflags "-X dev.sum7.eu/genofire/golang-lib/web/webtest.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable -X dev.sum7.eu/genofire/golang-lib/database.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable" $(go list ./... | grep -v /vendor/) -v -failfast -p 1 -coverprofile .testCoverage.txt - go test -ldflags "-X dev.sum7.eu/genofire/golang-lib/web/webtest.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable -X dev.sum7.eu/genofire/golang-lib/database.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable" $(go list ./... | grep -v /vendor/) -v -failfast -p 1 -coverprofile .testCoverage.txt
@ -24,6 +26,7 @@ pipeline:
test-race: test-race:
image: golang:latest image: golang:latest
group: test-race
commands: commands:
- go get -d -t ./... - go get -d -t ./...
- go test -ldflags "-X dev.sum7.eu/genofire/golang-lib/web/webtest.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable -X dev.sum7.eu/genofire/golang-lib/database.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable" $(go list ./... | grep -v /vendor/) -race - go test -ldflags "-X dev.sum7.eu/genofire/golang-lib/web/webtest.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable -X dev.sum7.eu/genofire/golang-lib/database.DBConnection=postgres://root:root@database:26257/defaultdb?sslmode=disable" $(go list ./... | grep -v /vendor/) -race