Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ü
Übung 0 Stack hbg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ludwig Valentin Anubis Janaka Hohenberg
Übung 0 Stack hbg
Commits
aa01e242
Commit
aa01e242
authored
1 year ago
by
Kai Dieter Schlabitz
Browse files
Options
Downloads
Patches
Plain Diff
Delete .gitlab-ci.yml
parent
35595033
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-270
0 additions, 270 deletions
.gitlab-ci.yml
with
0 additions
and
270 deletions
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
270
View file @
35595033
default
:
image
:
gitup.uni-potsdam.de:4567/maxschro/cofe_up/cofe_up
variables
:
GIT_STRATEGY
:
clone
AUFGABE
:
"
0.1"
PARAMETER
:
"
"
stages
:
-
clean
-
build
-
lint
-
publish
Clean
:
tags
:
-
lint
stage
:
clean
script
:
-
rm -rf data
-
mkdir data
artifacts
:
when
:
always
paths
:
-
results/output.make
-
data
Build
:
tags
:
-
lint
stage
:
build
script
:
-
echo "Try building"
-
rm -rf results
-
mkdir results
-
make clean ||
true
-
make 2> results/output.make
-
if [ -f results/output.make ]; then if grep -i warning results/output.make > /dev/null; then exit 1; else exit 0;fi;fi
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/make.pkl
allow_failure
:
exit_codes
:
-
1
artifacts
:
when
:
always
paths
:
-
results/output.make
-
data
reports
:
junit
:
output.xml
Build-Vorlage
:
tags
:
-
lint
stage
:
build
script
:
-
echo "Try building"
-
rm -rf results
-
mkdir results
# remove students Makefile
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile.bak" Makefile
-
make clean
-
make 2> results/output.make
-
if [ -f results/output.make ]; then if grep -i warning results/output.make > /dev/null; then exit 4; else exit 0;fi;fi
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/make-template.pkl
allow_failure
:
exit_codes
:
-
4
artifacts
:
when
:
always
paths
:
-
results/output.make
-
data
reports
:
junit
:
output.xml
Run
:
tags
:
-
lint
stage
:
lint
script
:
-
echo "Try building"
-
rm -rf results
-
mkdir results
# remove students Makefile
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile-analyzer.bak" Makefile
-
make clean
-
make
-
echo "-------------------------------------------------"; echo "YOUR PROGRAM IS BEING EXECUTED"; echo "-------------------------------------------------"
-
"
./prog
${PARAMETER}"
allow_failure
:
true
artifacts
:
when
:
always
paths
:
-
prog
-
core
StaticAnalyze
:
tags
:
-
lint
stage
:
lint
script
:
-
echo "Static analyze with 'SimpleErrorChecker'"
-
rm -rf results
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile-analyzer.bak" Makefile
-
make clean
# need the directory even if the analyzer don't find an error
-
mkdir results
-
'
(
scan-build
-o
./results
-plist-html
-load-plugin
/root/llvm-static-analyzers/build/SimpleErrorChecker.so
-enable-checker
alpha.unix.ErrorChecker2
-disable-checker
unix.Malloc
make
2>
/dev/null
||
true
)
|
grep
"scan-build:
No
bugs
found."'
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/scan-build.pkl
allow_failure
:
exit_codes
:
-
1
artifacts
:
when
:
always
expose_as
:
'
StaticAnalyze
Report'
paths
:
-
results
-
data
reports
:
junit
:
output.xml
StaticAnalyze2-Header
:
tags
:
-
lint
stage
:
lint
script
:
-
echo "Static analyze with 'DefinitionInHeaders'"
-
rm -rf results
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile-analyzer.bak" Makefile
-
make clean
-
bear -- make
-
mkdir results
-
clang-tidy -checks=-*,misc-definitions-in-headers,bugprone-suspicious-include -header-filter=.* *.c >> results/clangCheck.tidy
-
clang-tidy -checks=-*,misc-definitions-in-headers,bugprone-suspicious-include -header-filter=.* --export-fixes=rawoutput.txt *.c
-
if [ -s rawoutput.txt ]; then exit 2; fi;
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/tidy.pkl
allow_failure
:
exit_codes
:
-
1
-
2
artifacts
:
when
:
always
expose_as
:
'
StaticAnalyze2-Header
Report'
paths
:
-
results
-
data
reports
:
junit
:
output.xml
UnitTest
:
tags
:
-
lint
stage
:
lint
variables
:
CMOCKA_XML_FILE
:
"
results/%g.cmocka"
script
:
-
echo "Unittest with CMocka"
-
rm -rf results
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile-test.bak" Makefile
-
cp "/opt/exercises/gbr/$AUFGABE"/test-* ./
-
make clean
-
mkdir results
-
make 2> results/output.makecm
# If make fails, the job stops here. Otherwise we proceed with Unit-Tests
-
rm -f /results/output.makecm
-
unset ERROR
-
|
for i in test*.out; do
if "./$i" > /dev/null 2> "results/$i.make"; then
rm -f "results/$i.make";
else
if [ $? -ge 125 ] && [ $? -lt 255 ]; then
echo "Fehler beim ausfuehren der Unit-Tests, möglicher Segmentation Fault" > results/output.make;
else
rm -f "results/$i.make";
fi;
ERROR=1;
fi;
done
-
if [[ -v ERROR ]]; then
false
; fi
-
rm -f results/output.make
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/unit.pkl
allow_failure
:
true
artifacts
:
when
:
always
paths
:
-
results
-
core
-
test*.out
-
data
reports
:
junit
:
output.xml
MemoryCheck
:
tags
:
-
lint
stage
:
lint
script
:
-
echo "Thread Checks with TSAN"
-
rm -rf results
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile-asan.bak" Makefile
-
make
-
echo "Analyze"
-
mkdir results
-
ASAN_OPTIONS="log_path=results/log.asan" ./prog $PARAMETER
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/asan.pkl
allow_failure
:
exit_codes
:
-
1
artifacts
:
when
:
always
paths
:
-
results
-
data
reports
:
junit
:
output.xml
Threadanalyzer
:
tags
:
-
lint
stage
:
lint
script
:
-
echo "Thread Checks with TSAN"
-
rm -rf results
-
find . -iname "makefile" -exec rm {} \;
-
cp "/opt/exercises/gbr/$AUFGABE/Makefile-tsan.bak" Makefile
-
make
-
echo "Analyze"
-
mkdir results
-
TSAN_OPTIONS="log_path=results/log.tsan" ./prog $PARAMETER
after_script
:
-
python3 /opt/parser/run.py --input-dir ./results --output-junit output.xml --cf_local "/opt/exercises/gbr/$AUFGABE/messages.xml" --cf_global /opt/exercises/gbr/messages.xml --srcdir ./ --export-errors ./data/tsan.pkl
allow_failure
:
exit_codes
:
-
1
artifacts
:
when
:
always
paths
:
-
results
-
data
reports
:
junit
:
output.xml
pages
:
stage
:
publish
tags
:
-
lint
script
:
-
mkdir -p public
-
python3 /opt/parser/run.py --print --output-html ./public --template-dir /opt/templates --srcdir ./ --load-errors ./data --create-report --with-gitlab --download-report --export-report ./public/cofee.pkl
allow_failure
:
exit_codes
:
-
1
artifacts
:
paths
:
-
public
-
data
when
:
always
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment