Skip to content

Commit

Permalink
[travis] Make section titles bold
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 7, 2017
1 parent c0d4c04 commit ade21ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .ci/travis/linux/docker-build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
export CTEST_BUILD_COMMAND="/usr/bin/ninja"
export CTEST_PARALLEL_LEVEL=1

##############################
# Variables for output styling
##############################

bold=$(tput bold)
endbold=$(tput sgr0)

###########
# Configure
###########
Expand All @@ -25,7 +32,7 @@ mkdir -p build
pushd build > /dev/null

echo "travis_fold:start:cmake"
echo "Running cmake..."
echo "${bold}Running cmake...${endbold}"
cmake \
-GNinja \
-DWITH_STAGED_PLUGINS=ON \
Expand All @@ -47,7 +54,7 @@ echo "travis_fold:end:cmake"
# Build
#######
echo "travis_fold:start:ninja-build.1"
echo "Building QGIS..."
echo "${bold}Building QGIS...${endbold}"
${CTEST_BUILD_COMMAND}
echo "travis_fold:end:ninja-build.1"

Expand Down
2 changes: 1 addition & 1 deletion .ci/travis/scripts/ctest2travis.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def start_test_fold():
updated_line = line.decode('utf-8')
if re.match('Run dashboard with model Experimental', updated_line):
start_fold('build')
updated_line = 'Compiling\n{}'.format(updated_line)
updated_line = '{title}\n{line}'.format(title=colored('Running tests...', 'white', attrs=['bold']), line=updated_line)

elif re.match('Test project /home/travis/build/qgis/QGIS/build', updated_line):
end_fold() # tag=build
Expand Down

0 comments on commit ade21ea

Please sign in to comment.