Skip to content

Commit

Permalink
CI/travis/lib.sh: add echo_[red,green,blue] functions
Browse files Browse the repository at this point in the history
These will be useful for marking out important messages in logs.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
  • Loading branch information
commodo committed Feb 11, 2019
1 parent 5bdc242 commit 1e23f69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CI/travis/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export TRAVIS_API_URL="https://api.travis-ci.org"

COMMON_SCRIPTS="jobs_running_cnt.py inside_docker.sh"

echo_red() { printf "\033[1;31m$*\033[m\n"; }
echo_green() { printf "\033[1;32m$*\033[m\n"; }
echo_blue() { printf "\033[1;34m$*\033[m\n"; }

get_script_path() {
local script="$1"

Expand Down

0 comments on commit 1e23f69

Please sign in to comment.