2018-09-19 11:49:43 +02:00
|
|
|
#!/bin/bash
|
2019-11-28 12:57:49 +01:00
|
|
|
set -x
|
2018-09-19 11:49:43 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export POSTGRESQL_HOST=$1
|
|
|
|
export REGISTRY_URL=$1:5000
|
|
|
|
export CHROME_BIN=chromium-browser
|
2019-12-11 12:11:20 +01:00
|
|
|
#export DISPLAY=:99.0
|
|
|
|
#sh -e /etc/init.d/xvfb start
|
2018-09-19 11:49:43 +02:00
|
|
|
|
|
|
|
sudo docker-compose -f ./make/docker-compose.test.yml up -d
|
|
|
|
sleep 10
|
|
|
|
./tests/pushimage.sh
|
|
|
|
docker ps
|
|
|
|
|
2019-12-11 12:11:20 +01:00
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
2019-01-09 10:40:27 +01:00
|
|
|
go test -race -i ./src/core ./src/jobservice
|
2019-12-11 12:11:20 +01:00
|
|
|
sudo -E env "PATH=$PATH" "POSTGRES_MIGRATION_SCRIPTS_PATH=$DIR/../../make/migrations/postgresql/" ./tests/coverage4gotest.sh
|
2019-08-13 17:47:21 +02:00
|
|
|
goveralls -coverprofile=profile.cov -service=travis-ci || true
|