This repository was archived by the owner on Feb 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
services :
7
7
- docker
8
- - postgresql
8
+
9
+ install :
10
+ - sudo apt-get remove postgresql-* -y
11
+ - sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-client-11
9
12
10
13
before_script :
11
- - go get -v -u github.com/golang/dep/cmd/dep
12
- - dep ensure -v -vendor-only
13
14
- cp sqlboiler.toml.ci sqlboiler.toml
14
15
- cp .env.ci .env
15
- - psql -c 'create database accounts;' -U postgres
16
+ - docker-compose up -d pg
17
+ # - timeout 30 docker-compose exec pg bash -c "until psql -c '\q' -U postgres; do sleep 0.5; done"
18
+ - sleep 10
16
19
- scripts/setup-db -y
20
+ - go get -v -u github.com/golang/dep/cmd/dep
21
+ - dep ensure -v -vendor-only
17
22
18
23
script :
19
24
- go test -v -race ./...
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ if [ ! -z "$1" ] && [ $1 != '-y' ]; then
5
5
exit 1
6
6
fi
7
7
8
+ docker-compose exec pg psql -c ' create database accounts;' -U postgres
8
9
docker-compose exec pg psql -c ' create database hydra;' -U postgres
9
10
10
11
docker-compose -f db/docker-compose.yml build
You can’t perform that action at this time.
0 commit comments