Commit bb6642a8 authored by Jan Möbius's avatar Jan Möbius

Color output

parent 601c9389
Pipeline #234 failed with stage
...@@ -28,12 +28,19 @@ elif [ "$LANGUAGE" == "C++11" ]; then ...@@ -28,12 +28,19 @@ elif [ "$LANGUAGE" == "C++11" ]; then
BUILDPATH="$BUILDPATH-cpp11" BUILDPATH="$BUILDPATH-cpp11"
fi fi
#=====================================
# Color Settings:
#=====================================
NC='\033[0m'
OUTPUT='\033[0;32m'
echo ""
echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Release version with vectorchecks enabled" echo "Building Release version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH-Vector-Checks ]; then if [ ! -d build-release-$BUILDPATH-Vector-Checks ]; then
...@@ -50,12 +57,12 @@ make ...@@ -50,12 +57,12 @@ make
#build the unit tests #build the unit tests
make unittests make unittests
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running unittests Release version with vectorchecks enabled" echo "Running unittests Release version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
cd Unittests cd Unittests
...@@ -65,11 +72,12 @@ cd Unittests ...@@ -65,11 +72,12 @@ cd Unittests
cd .. cd ..
cd .. cd ..
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Release version with vectorchecks disabled for python tests" echo "Building Release version with vectorchecks disabled for python tests"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH ]; then if [ ! -d build-release-$BUILDPATH ]; then
mkdir build-release-$BUILDPATH mkdir build-release-$BUILDPATH
...@@ -82,11 +90,12 @@ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_A ...@@ -82,11 +90,12 @@ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_A
#build it #build it
make make
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running Python unittests Release version " echo "Running Python unittests Release version "
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
# Execute Python unittests # Execute Python unittests
...@@ -99,11 +108,12 @@ cd .. ...@@ -99,11 +108,12 @@ cd ..
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Debug version with vectorchecks enabled" echo "Building Debug version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH-Vector-Checks ]; then if [ ! -d build-debug-$BUILDPATH-Vector-Checks ]; then
...@@ -120,11 +130,12 @@ make ...@@ -120,11 +130,12 @@ make
#build the unit tests #build the unit tests
make unittests make unittests
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running unittests Debug version with vectorchecks enabled" echo "Running unittests Debug version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
cd Unittests cd Unittests
...@@ -135,11 +146,12 @@ cd Unittests ...@@ -135,11 +146,12 @@ cd Unittests
cd .. cd ..
cd .. cd ..
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Debug version with vectorchecks disabled for python tests" echo "Building Debug version with vectorchecks disabled for python tests"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH ]; then if [ ! -d build-debug-$BUILDPATH ]; then
mkdir build-debug-$BUILDPATH mkdir build-debug-$BUILDPATH
...@@ -152,11 +164,12 @@ cmake -DCMAKE_BUILD_TYPE=DEBUG -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_APP ...@@ -152,11 +164,12 @@ cmake -DCMAKE_BUILD_TYPE=DEBUG -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_APP
#build it #build it
make make
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running Python unittests Debug version " echo "Running Python unittests Debug version "
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
# Execute Python unittests # Execute Python unittests
......
...@@ -5,6 +5,7 @@ set -e ...@@ -5,6 +5,7 @@ set -e
LANGUAGE=$1 LANGUAGE=$1
PATH=$PATH:/opt/local/bin PATH=$PATH:/opt/local/bin
export PATH export PATH
...@@ -19,12 +20,19 @@ elif [ "$LANGUAGE" == "C++11" ]; then ...@@ -19,12 +20,19 @@ elif [ "$LANGUAGE" == "C++11" ]; then
BUILDPATH="$BUILDPATH-cpp11" BUILDPATH="$BUILDPATH-cpp11"
fi fi
#=====================================
# Color Settings:
#=====================================
NC='\033[0m'
OUTPUT='\033[0;32m'
echo ""
echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Release version with vectorchecks enabled" echo "Building Release version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH-Vector-Checks ]; then if [ ! -d build-release-$BUILDPATH-Vector-Checks ]; then
...@@ -41,12 +49,12 @@ make ...@@ -41,12 +49,12 @@ make
#build the unit tests #build the unit tests
make unittests make unittests
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running unittests Release version with vectorchecks enabled" echo "Running unittests Release version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
cd Unittests cd Unittests
...@@ -56,11 +64,12 @@ cd Unittests ...@@ -56,11 +64,12 @@ cd Unittests
cd .. cd ..
cd .. cd ..
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Release version with vectorchecks disabled for python tests" echo "Building Release version with vectorchecks disabled for python tests"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH ]; then if [ ! -d build-release-$BUILDPATH ]; then
mkdir build-release-$BUILDPATH mkdir build-release-$BUILDPATH
...@@ -73,11 +82,12 @@ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_A ...@@ -73,11 +82,12 @@ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_A
#build it #build it
make make
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running Python unittests Release version " echo "Running Python unittests Release version "
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
# Execute Python unittests # Execute Python unittests
...@@ -92,11 +102,12 @@ cd .. ...@@ -92,11 +102,12 @@ cd ..
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Debug version with vectorchecks enabled" echo "Building Debug version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH-Vector-Checks ]; then if [ ! -d build-debug-$BUILDPATH-Vector-Checks ]; then
...@@ -113,11 +124,12 @@ make ...@@ -113,11 +124,12 @@ make
#build the unit tests #build the unit tests
make unittests make unittests
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running unittests Debug version with vectorchecks enabled" echo "Running unittests Debug version with vectorchecks enabled"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
cd Unittests cd Unittests
...@@ -128,11 +140,12 @@ cd Unittests ...@@ -128,11 +140,12 @@ cd Unittests
cd .. cd ..
cd .. cd ..
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Building Debug version with vectorchecks disabled for python tests" echo "Building Debug version with vectorchecks disabled for python tests"
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH ]; then if [ ! -d build-debug-$BUILDPATH ]; then
mkdir build-debug-$BUILDPATH mkdir build-debug-$BUILDPATH
...@@ -145,11 +158,12 @@ cmake -DCMAKE_BUILD_TYPE=DEBUG -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_APP ...@@ -145,11 +158,12 @@ cmake -DCMAKE_BUILD_TYPE=DEBUG -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_APP
#build it #build it
make make
echo "" echo "${OUTPUT}"
echo "" echo ""
echo "======================================================================" echo "======================================================================"
echo "Running Python unittests Debug version " echo "Running Python unittests Debug version "
echo "====================================================================== \n" echo "======================================================================"
echo "${NC}"
# Execute Python unittests # Execute Python unittests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment