1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-10 20:40:55 +00:00
Beego/scripts/test.sh

15 lines
304 B
Bash
Raw Normal View History

#!/bin/bash
2020-07-28 06:28:51 +00:00
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"
2020-07-28 06:28:51 +00:00
go test "$(pwd)/..."
# clear all container
2020-07-28 06:28:51 +00:00
docker-compose -f "$(pwd)/scripts/test_docker_compose.yaml" down