forked from openshift-online/rh-trex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpr_check_docker.sh
More file actions
27 lines (21 loc) · 823 Bytes
/
pr_check_docker.sh
File metadata and controls
27 lines (21 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash -ex
# Reflects defaults found in pkg/config/db.go
export GORM_DIALECT="postgres"
export GORM_HOST="localhost"
export GORM_PORT="5432"
export GORM_NAME="rh-trex"
export GORM_USERNAME="trex"
export GORM_PASSWORD="foobar-bizz-buzz"
export GORM_SSLMODE="disable"
export GORM_DEBUG="false"
export LOGLEVEL="1"
export TEST_SUMMARY_FORMAT="standard-verbose"
go version
mkdir "$(go env GOPATH)/bin"
which gotestsum || curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v0.3.5/gotestsum_0.3.5_linux_amd64.tar.gz" | tar -xz -C "$(go env GOPATH)/bin" gotestsum
which pg_ctl
PGDATA=/var/lib/postgresql/data /usr/lib/postgresql/*/bin/pg_ctl -w stop
PGDATA=/var/lib/postgresql/data /usr/lib/postgresql/*/bin/pg_ctl start -o "-c listen_addresses='*' -p 5432"
make test
make test-integration
exit 0