Skip to content

Commit

Permalink
Fix CI error with tput in shell scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Oct 30, 2023
1 parent 5704893 commit b6e35b5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 12 deletions.
12 changes: 9 additions & 3 deletions tests/emscripten/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ configuration=debug
platform=x64
jsinterp=node

red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
if [ -z "${TERM}" ]; then
red=""
green=""
reset=""
else
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
fi

generate=true

Expand Down
12 changes: 9 additions & 3 deletions tests/napi/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ rootdir="$dir/../.."
configuration=Release
platform=x64

red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
if [ -z "${TERM}" ]; then
red=""
green=""
reset=""
else
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
fi

echo "${green}Generating bindings${reset}"
dotnet $rootdir/bin/${configuration}_${platform}/CppSharp.CLI.dll \
Expand Down
12 changes: 9 additions & 3 deletions tests/quickjs/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ configuration=debug
platform=x64
jsinterp="$rootdir/deps/quickjs/qjs-debug"

red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
if [ -z "${TERM}" ]; then
red=""
green=""
reset=""
else
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
fi

generate=true

Expand Down
12 changes: 9 additions & 3 deletions tests/ts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ configuration=debug
platform=x64
jsinterp="$rootdir/deps/quickjs/qjs-debug"

red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
if [ -z "${TERM}" ]; then
red=""
green=""
reset=""
else
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
fi

generate=true

Expand Down

0 comments on commit b6e35b5

Please sign in to comment.