mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-20 23:46:49 +00:00
23 lines
546 B
Bash
23 lines
546 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# on macs, you may need to:
|
||
|
# export GOBUILDFLAG=-ldflags -linkmode=external
|
||
|
|
||
|
set -e
|
||
|
|
||
|
export GORP_TEST_DSN=gorptest/gorptest/gorptest
|
||
|
export GORP_TEST_DIALECT=mysql
|
||
|
go test $GOBUILDFLAG .
|
||
|
|
||
|
export GORP_TEST_DSN=gorptest:gorptest@/gorptest
|
||
|
export GORP_TEST_DIALECT=gomysql
|
||
|
go test $GOBUILDFLAG .
|
||
|
|
||
|
export GORP_TEST_DSN="user=gorptest password=gorptest dbname=gorptest sslmode=disable"
|
||
|
export GORP_TEST_DIALECT=postgres
|
||
|
go test $GOBUILDFLAG .
|
||
|
|
||
|
export GORP_TEST_DSN=/tmp/gorptest.bin
|
||
|
export GORP_TEST_DIALECT=sqlite
|
||
|
go test $GOBUILDFLAG .
|