Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProjLab
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
insert epic projlab name here
ProjLab
Commits
707c6b37
Verified
Commit
707c6b37
authored
4 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
meh.
parent
384521a0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#7948
failed
4 years ago
Stage: build
Stage: getjar
Stage: test
Stage: docs
Stage: zip
Stage: telegram
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+13
-2
13 additions, 2 deletions
.gitlab-ci.yml
docs/linecounter.sh
+31
-0
31 additions, 0 deletions
docs/linecounter.sh
docs/weeks/14/14_1.tex
+4
-4
4 additions, 4 deletions
docs/weeks/14/14_1.tex
with
48 additions
and
6 deletions
.gitlab-ci.yml
+
13
−
2
View file @
707c6b37
...
...
@@ -3,11 +3,20 @@ image: projlab/projlab:13.1.1
stages
:
-
build
-
getjar
-
docs
-
test
-
docs
-
zip
-
telegram
Line count
:
stage
:
test
needs
:
[]
script
:
-
docs/linecount.sh
artifacts
:
paths
:
-
docs/lines
Docs
:
stage
:
docs
script
:
...
...
@@ -17,6 +26,7 @@ Docs:
needs
:
-
Jar
-
Get tester jar
-
Line count
artifacts
:
paths
:
-
docs/projlab.pdf
...
...
@@ -27,7 +37,8 @@ Merged:
script
:
-
export TZ=Europe/Budapest
-
docs/magic.sh
needs
:
[]
needs
:
-
Line count
artifacts
:
paths
:
-
docs/merged.pdf
...
...
This diff is collapsed.
Click to expand it.
docs/linecounter.sh
0 → 100755
+
31
−
0
View file @
707c6b37
#!/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
This diff is collapsed.
Click to expand it.
docs/weeks/14/14_1.tex
+
4
−
4
View file @
707c6b37
...
...
@@ -10,9 +10,9 @@
\hline
\endhead
Szkeleton
&
nem is írtunk kódot
\\
\hline
Prototípus
&
itt a tervezés tervezésének az ellenőrzésének a tervezésével foglalkoztunk...
\\
\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
\textbf
{
Összesen
}&
nem
\\
\hline
Szkeleton
&
\input
{
lines/w6
}
\\
\hline
Prototípus
&
\input
{
lines/w10
}
\\
\hline
Grafikus változat
&
\input
{
lines/w13
}
\\
\hline
\textbf
{
Összesen
}&
\input
{
lines/total
}
\\
\hline
\end{xltabular}
\ No newline at end of file
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