diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-25 11:56:34 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-25 11:56:34 +0300 |
commit | 027f2ca58f1a80f81205b401846a8b6c70b88fee (patch) | |
tree | 342a8882400e917aade4baef299dc871fe2b3b07 /.travis/docker/test.sh | |
parent | Travis: add the badge to README (diff) | |
download | cgitize-027f2ca58f1a80f81205b401846a8b6c70b88fee.tar.gz cgitize-027f2ca58f1a80f81205b401846a8b6c70b88fee.zip |
Travis: prettier test output
Diffstat (limited to '')
-rwxr-xr-x | .travis/docker/test.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.travis/docker/test.sh b/.travis/docker/test.sh index 4e33828..464ec3d 100755 --- a/.travis/docker/test.sh +++ b/.travis/docker/test.sh @@ -41,6 +41,11 @@ spawn_ssh_agent() { } setup_ssh_agent() { + echo + echo ---------------------------------------------------------------------- + echo Setting up ssh-agent + echo ---------------------------------------------------------------------- + spawn_ssh_agent local key='ssh/client_key' @@ -64,6 +69,11 @@ setup_ssh_agent() { } docker_build() { + echo + echo ---------------------------------------------------------------------- + echo Building Docker images + echo ---------------------------------------------------------------------- + docker-compose build } @@ -73,10 +83,20 @@ setup() { } run_server() { + echo + echo ---------------------------------------------------------------------- + echo Running the server + echo ---------------------------------------------------------------------- + docker-compose up -d server } run_client() { + echo + echo ---------------------------------------------------------------------- + echo Running the client + echo ---------------------------------------------------------------------- + if [ -z "${SSH_AUTH_SOCK:+x}" ]; then dump 'SSH_AUTH_SOCK is not defined' >&2 return 1 @@ -91,6 +111,11 @@ run() { } verify() { + echo + echo ---------------------------------------------------------------------- + echo Checking the pulled repository + echo ---------------------------------------------------------------------- + pushd -- "$script_dir/client/var/output/test_repo" > /dev/null git log --oneline popd > /dev/null |