Skip to content
Snippets Groups Projects
Commit 94c919da authored by Grigoris Pavlakis's avatar Grigoris Pavlakis Committed by kongr45gpen
Browse files

Upgrade python to 3.6 in order for f-strings to work

Attempt #2 at fixing gitlab

Attempt at fixing gitlab build #3: damn symlinks
parent 3bb4d1d9
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ cppcheck-misra:
before_script:
# install cppcheck from the sid repos in order to get the latest version
- echo deb http://deb.debian.org/debian sid main > /etc/apt/sources.list
- apt-get update -qq && apt-get -t sid install -y -qq cppcheck
- apt-get update -qq && apt-get -t sid install -y -qq cppcheck && apt-get -t sid install -y python3.6
- cppcheck --version
script:
- ci/cppcheck-misra.sh
......
......@@ -26,5 +26,4 @@ sed -i -r 's/(.*Script.*)|(.*Checking.*)|(.*MISRA.*)//gm; /(^$)/d; s/(\s\(.*\)\s
# run the summarizer for a nice, clean summary of errors
echo -e "\u001b[34;1mSummarizing results...\u001b[0m"
python3 --version
python3 ci/summarizer.py ci/report.msr
python3.6 ci/summarizer.py ci/report.msr
......@@ -61,7 +61,7 @@ class Summarizer(object):
name_string = f"{self.bold}{self.red}File {self.yellow}{key}{self.red}"
rule_violated_string = f"violates rule {self.yellow}#{error[1]}{self.red} of the MISRA C 2012 standard"
line_number_string = f"at line {self.yellow}{error[0]}{self.end}"
print(f"{name_string.ljust(75)} {rule_violated_string} {line_number_string}")
print("")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment