mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 17:08:07 +00:00
unit testing postgres, mysql. temporary workaround for backticks
This commit is contained in:
8
Makefile
8
Makefile
@@ -41,6 +41,14 @@ build_static:
|
||||
test:
|
||||
go test -cover $(PACKAGES)
|
||||
|
||||
# docker run --publish=3306:3306 -e MYSQL_DATABASE=test -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:5.6.27
|
||||
test_mysql:
|
||||
DATABASE_DRIVER="mysql" DATABASE_CONFIG="root@tcp(127.0.0.1:3306)/test?parseTime=true" go test github.com/drone/drone/model
|
||||
|
||||
# docker run --publish=5432:5432 postgres:9.4.5
|
||||
test_postgres:
|
||||
DATABASE_DRIVER="postgres" DATABASE_CONFIG="host=127.0.0.1 user=postgres dbname=postgres sslmode=disable" go test github.com/drone/drone/model
|
||||
|
||||
deb:
|
||||
mkdir -p contrib/debian/drone/usr/local/bin
|
||||
mkdir -p contrib/debian/drone/var/lib/drone
|
||||
|
Reference in New Issue
Block a user