mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
fix database unit tests in Makefile
This commit is contained in:
parent
9b2a9e6124
commit
6b69913d82
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -44,11 +44,11 @@ test:
|
|||
|
||||
# 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
|
||||
DATABASE_DRIVER="mysql" DATABASE_CONFIG="root@tcp(127.0.0.1:3306)/test?parseTime=true" go test github.com/drone/drone/store/datastore
|
||||
|
||||
# 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
|
||||
DATABASE_DRIVER="postgres" DATABASE_CONFIG="host=127.0.0.1 user=postgres dbname=postgres sslmode=disable" go test github.com/drone/drone/store/datastore
|
||||
|
||||
deb:
|
||||
mkdir -p contrib/debian/drone/usr/local/bin
|
||||
|
|
Loading…
Reference in a new issue