github.com/ecodeclub/eorm@v0.0.2-0.20231001112437-dae71da914d0/script/integrate_test.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e
     4  docker compose -f script/integration_test_compose.yml down
     5  docker compose -f script/integration_test_compose.yml up -d
     6  echo "127.0.0.1 slave.a.com" >> /etc/hosts
     7  go test -timeout=30m -race ./... -tags=e2e
     8  docker compose -f script/integration_test_compose.yml down