Commit b1d6dd88 authored by David Diederich's avatar David Diederich
Browse files

Add a stage to the generated pipeline to execute the Summarize_Newman_Html_Reports script

Since this python script has some non-standard dependencies, we also introduce the requirements.txt file to use. The pipeline will
depend on virtualenv to cache the package details from one execution to the next.
parent 327f9998
Pipeline #10912 failed with stages
in 7 seconds
File mode changed from 100644 to 100755
......@@ -34,6 +34,7 @@ with open('test-execution.gitlab-ci.yml', 'w') as pipelineConfig:
for environ in environments:
platform = environ['nameParts'][0]
pipelineConfig.write(' - ' + platform + '\n');
pipelineConfig.write(' - summarize\n');
pipelineConfig.write(' - publish\n');
pipelineConfig.write('\n# --------------------------------------------------------------------------------\n\n');
......@@ -86,6 +87,31 @@ with open('test-execution.gitlab-ci.yml', 'w') as pipelineConfig:
print('To add this output, run the pipeline for your branch and add the variable "CI_PUBLISH_RESULTS", set to the value "true" (all lowercase)')
outputPagesJob = False
# --------------------------------------------------------------------------------
# Output the summarize job
pipelineConfig.write('\n'.join([
'',
'summarize:',
' image: python',
' stage: summarize',
' artifacts:',
' paths:',
' - public',
' cache:',
' paths:',
' - venv',
' before_script:',
' - virtualenv venv',
' - venv/bin/activate',
' - pip3 install -r requirements.txt',
' script:',
' - cd public && ../Summarize_Newman_Html_Reports.py',
' when: always',
''
]))
# --------------------------------------------------------------------------------
if (outputPagesJob):
......
beautifulsoup4==4.9.2
bs4==0.0.1
certifi==2020.6.20
chardet==3.0.4
idna==2.10
requests==2.24.0
soupsieve==2.0.1
urllib3==1.25.10
XlsxWriter==1.3.6
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