aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis/docker
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-25 11:56:34 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-25 11:56:34 +0300
commit027f2ca58f1a80f81205b401846a8b6c70b88fee (patch)
tree342a8882400e917aade4baef299dc871fe2b3b07 /.travis/docker
parentTravis: add the badge to README (diff)
downloadcgitize-027f2ca58f1a80f81205b401846a8b6c70b88fee.tar.gz
cgitize-027f2ca58f1a80f81205b401846a8b6c70b88fee.zip
Travis: prettier test output
Diffstat (limited to '.travis/docker')
-rwxr-xr-x.travis/docker/server/setup_repo.sh5
-rwxr-xr-x.travis/docker/test.sh25
2 files changed, 30 insertions, 0 deletions
diff --git a/.travis/docker/server/setup_repo.sh b/.travis/docker/server/setup_repo.sh
index 3d5b899..82ae711 100755
--- a/.travis/docker/server/setup_repo.sh
+++ b/.travis/docker/server/setup_repo.sh
@@ -5,6 +5,11 @@ set -o errexit -o nounset -o pipefail
readonly local_repo_path="$HOME/test_repo"
setup_local_repo() {
+ echo
+ echo ----------------------------------------------------------------------
+ echo Setting up upstream repository
+ echo ----------------------------------------------------------------------
+
mkdir -p -- "$local_repo_path"
pushd -- "$local_repo_path" > /dev/null
git init
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