Skip to content

Commit

Permalink
bin
Browse files Browse the repository at this point in the history
  • Loading branch information
alecrabbit committed Apr 26, 2019
1 parent c65a1ae commit b6b5135
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bin/VERSION
@@ -1 +1 @@
0.0.47
0.1.2
3 changes: 3 additions & 0 deletions bin/colors.sh
Expand Up @@ -12,7 +12,10 @@

LIGHT_GRAY='\033[0;37m'
DARK_GRAY='\033[0;30m'
CYAN='\033[1;36m'
DARK='\033[2m'
YELLOW='\033[0;33m'
LIGHT_GREEN='\033[1;32m'
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
37 changes: 27 additions & 10 deletions bin/functions.sh
@@ -1,13 +1,29 @@
#!/usr/bin/env bash

set_title () {
echo -e "\033]0;${1}\007"
}

header () {
printf "${LIGHT_GRAY}${1}${NC}\n"
printf "${CYAN}${1}${NC}\n"
}

dark () {
printf "${DARK}${1}${NC}\n"
}

info () {
printf "\n${GREEN}${1}${NC}\n\n"
}

green () {
printf "${GREEN}${1}${NC}\n"
}

light_green () {
printf "${LIGHT_GREEN}${1}${NC}\n"
}

error () {
printf "\n${RED}${1}${NC}\n\n"
}
Expand All @@ -21,10 +37,10 @@ no-exec () {
}

enabled () {
echo " enabled."
light_green " enabled."
}
disabled () {
echo " disabled."
dark " disabled."
}

help_message () {
Expand All @@ -50,6 +66,14 @@ fi
}

options_enabled () {
printf "Container restart"
if [[ ${RESTART_CONTAINER} == 1 ]]
then
enabled
else
disabled
fi

printf "Analysis"
if [[ ${ANALYZE} == 1 ]]
then
Expand Down Expand Up @@ -92,13 +116,6 @@ options_enabled () {
else
disabled
fi
printf "Container restart"
if [[ ${RESTART_CONTAINER} == 1 ]]
then
enabled
else
disabled
fi

}

Expand Down
7 changes: 5 additions & 2 deletions bin/tests
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
dir="$(basename "$(pwd)")"
start_time=`date +%s`
script_dir="$(dirname "$0")"
cd ${script_dir}

. imports.sh "$@"


if [[ ${PROPAGATE} == 1 ]]
then
error "Using --propagate option on this script may lead to unexpected results. "
Expand All @@ -24,7 +24,10 @@ OPTION_NO_RESTART=1

help_message

header "Tests and coverage script"
header "Tests, coverage, analysis and metrics script"
dark "Setting terminal title... \n'${dir}'"
set_title "${dir}"

if [[ ${EXEC} == 0 ]]
then
echo "No-Exec selected."
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ForReports/Core/Formattable.php
Expand Up @@ -4,4 +4,4 @@

abstract class Formattable
{
}
}

0 comments on commit b6b5135

Please sign in to comment.