Skip to content
Snippets Groups Projects
Verified Commit 707c6b37 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

meh.

parent 384521a0
No related branches found
No related tags found
No related merge requests found
Pipeline #7948 failed
...@@ -3,11 +3,20 @@ image: projlab/projlab:13.1.1 ...@@ -3,11 +3,20 @@ image: projlab/projlab:13.1.1
stages: stages:
- build - build
- getjar - getjar
- docs
- test - test
- docs
- zip - zip
- telegram - telegram
Line count:
stage: test
needs: []
script:
- docs/linecount.sh
artifacts:
paths:
- docs/lines
Docs: Docs:
stage: docs stage: docs
script: script:
...@@ -17,6 +26,7 @@ Docs: ...@@ -17,6 +26,7 @@ Docs:
needs: needs:
- Jar - Jar
- Get tester jar - Get tester jar
- Line count
artifacts: artifacts:
paths: paths:
- docs/projlab.pdf - docs/projlab.pdf
...@@ -27,7 +37,8 @@ Merged: ...@@ -27,7 +37,8 @@ Merged:
script: script:
- export TZ=Europe/Budapest - export TZ=Europe/Budapest
- docs/magic.sh - docs/magic.sh
needs: [] needs:
- Line count
artifacts: artifacts:
paths: paths:
- docs/merged.pdf - docs/merged.pdf
......
#!/bin/bash
if [ "$0" != "/tmp/lines/linecount.sh" ]; then
mkdir -p /tmp/lines
cp "$0" /tmp/lines/linecount.sh
cd "$(dirname "$0")" || exit 1
cd ../src || exit 1
exec /tmp/lines/linecount.sh
fi
total=0
hash="$(git rev-parse HEAD)"
for week in w6 w10 w13; do
echo "week $week incoming..."
git clean -fd
git checkout "w${week}"
curr=$(wc -l $(find src -name "*.java") | grep total | awk '{print $1}')
echo "$curr" > "/tmp/lines/$week"
total=$(("$total" + "$curr"))
git reset --hard "w${week}"
done
echo "$total" > /tmp/lines/total
git checkout "$hash"
cp -r /tmp/lines docs/
\ No newline at end of file
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
\hline \hline
\endhead \endhead
Szkeleton& nem is írtunk kódot\\ \hline Szkeleton & \input{lines/w6} \\ \hline
Prototípus& itt a tervezés tervezésének az ellenőrzésének a tervezésével foglalkoztunk...\\ \hline Prototípus & \input{lines/w10} \\ \hline
Grafikus változat& itt már a dokumentációból mágikusan kigenerálódott kódot használtuk, tehát mi nem írtunk egy sort se\\ \hline Grafikus változat& \input{lines/w13} \\ \hline
\textbf{Összesen}& nem\\ \hline \textbf{Összesen}& \input{lines/total} \\ \hline
\end{xltabular} \end{xltabular}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment