Skip to content
Snippets Groups Projects
Commit 8d2b768f authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[ci] escape colon in yml by

parent ff6ef758
No related branches found
No related tags found
1 merge request!2408Feature/ci integration
......@@ -36,10 +36,11 @@ def substituteAndWrite(mapping):
ymlFile.write(raw.substitute(**mapping))
commandIndentation = ' '*args['indentation']
with open(args['outfile'], 'w') as ymlFile:
def makeScriptString(commands):
commands = [' '*args['indentation'] + '- ' + comm for comm in commands]
commands = [commandIndentation + '- ' + comm for comm in commands]
return '\n'.join(commands)
# if no configuration is given, build and run all tests
......@@ -67,7 +68,9 @@ with open(args['outfile'], 'w') as ymlFile:
'touch TestMakefile',
'echo "include CMakeFiles/Makefile2" >> TestMakefile',
'echo "" >> TestMakefile',
'echo "build_selected_tests: {}" >> TestMakefile'
'|\n'
+ commandIndentation
+ ' "echo "build_selected_tests: {}" >> TestMakefile"'
.format(' '.join(targetNames)),
'make -j4 build_selected_tests']
testCommand = ['cd build-cmake',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment