mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
c6814f2bcc
1, deprecate travis, and use the gitaction for instread. 2, upgrade golang version to v1.15.6 Signed-off-by: Wang Yan <wangyan@vmware.com>
18 lines
534 B
Bash
Executable File
18 lines
534 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
export POSTGRESQL_HOST=$1
|
|
export REGISTRY_URL=$1:5000
|
|
export CHROME_BIN=chromium-browser
|
|
#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 |