mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 22:30:54 +00:00
15 lines
304 B
Bash
15 lines
304 B
Bash
#!/bin/bash
|
|
|
|
docker-compose -f "$(pwd)/scripts/test_docker_compose.yaml" up -d
|
|
|
|
export ORM_DRIVER=mysql
|
|
export TZ=UTC
|
|
export ORM_SOURCE="beego:test@tcp(localhost:13306)/orm_test?charset=utf8"
|
|
|
|
go test "$(pwd)/..."
|
|
|
|
# clear all container
|
|
docker-compose -f "$(pwd)/scripts/test_docker_compose.yaml" down
|
|
|
|
|