image_builder: split builder_docker & builder_scripts skip travis

This commit is contained in:
Artem Smirnov
2018-09-21 20:02:51 +03:00
parent c0cd53c733
commit 5cf7e86d33
23 changed files with 3 additions and 3 deletions

26
builder_docker/echo_stamp.sh Executable file
View File

@@ -0,0 +1,26 @@
#! /usr/bin/env bash
#
# Script for image configure
# @urpylka Artem Smirnov
#
echo_stamp() {
# TEMPLATE: echo_stamp <TEXT> <TYPE>
# TYPE: SUCCESS, ERROR, INFO
# More info there https://www.shellhacks.com/ru/bash-colors/
TEXT="$(date) | $1"
TEXT="\e[1m$TEXT\e[0m" # BOLD
case "$2" in
SUCCESS)
TEXT="\e[32m${TEXT}\e[0m";; # GREEN
ERROR)
TEXT="\e[31m${TEXT}\e[0m";; # RED
*)
TEXT="\e[34m${TEXT}\e[0m";; # BLUE
esac
echo -e ${TEXT}
}