2021-01-06 08:30:54 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
export POSTGRESQL_HOST=$1
|
|
|
|
export REGISTRY_URL=$1:5000
|
|
|
|
export CHROME_BIN=chromium-browser
|
2022-04-27 04:01:42 +02:00
|
|
|
export GO111MODULE=auto
|
2021-01-06 08:30:54 +01:00
|
|
|
#export DISPLAY=:99.0
|
|
|
|
#sh -e /etc/init.d/xvfb start
|
|
|
|
|
|
|
|
sudo docker-compose -f ./make/docker-compose.test.yml up -d
|
|
|
|
sleep 10
|
|
|
|
./tests/pushimage.sh
|
|
|
|
docker ps
|
|
|
|
|
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
go test -race -i ./src/core ./src/jobservice
|
|
|
|
sudo -E env "PATH=$PATH" "POSTGRES_MIGRATION_SCRIPTS_PATH=$DIR/../../make/migrations/postgresql/" ./tests/coverage4gotest.sh
|
|
|
|
#goveralls -coverprofile=profile.cov -service=travis-ci || true
|