Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tutscripts-alp4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
mielimom02
tutscripts-alp4
Commits
a4233ee1
Verified
Commit
a4233ee1
authored
Apr 17, 2024
by
mielimom02
Browse files
Options
Downloads
Patches
Plain Diff
feat(git): added documentation for fugit* scripts and the extended npvp workflow
parent
3007d449
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+32
-0
32 additions, 0 deletions
README.md
fugitclean.sh
+7
-0
7 additions, 0 deletions
fugitclean.sh
with
39 additions
and
0 deletions
README.md
+
32
−
0
View file @
a4233ee1
...
...
@@ -35,9 +35,41 @@ $ ./install.sh
$ cd "Uebung 01"
$ fucopy '*.asm'
```
Now edit the source code and use Xournal++ annotations to write comments on the
PDF to add your comments there as well. Be sure to also enter the grade in the
"grades.csv" file, e.g., using Libre Office.
<details
open
>
<summary>
NPVP Workflow extension
</summary>
### NPVP
When correcting npvp exercises, you can use the
`fugit`
script to automatically
pull the correct repository and branch. This requires the submissions to follow some requirements:
1.
the repository has to be named
`npvp-exercises`
1.
the submission must include the branch in the comments.txt file
1.
the same student that submitted the exercise must be the owner of the git repo (namespace)
Futhermore you can autmatically test the code on andorra by setting
`FU_ANDORRA_USER`
before running
`fugit`
.
When running on andorra, a remote directory to clone into can also be specified using
`FU_ANDORRA_DIR`
. The cloned
repository is removed after trying to run in either case (default dir:
`npvp-tmp`
).
To switch between the different languages and build systems, you can set
`FU_RUN`
to
`0`
for
`make run`
,
`1`
for
`python3 main.py`
or
`2`
for
`node main.js`
(default:
`0`
).
examples:
```
sh
FU_ANDORRA_USER
=
fuuser
FU_RUN
=
1 fugit
```
or locally:
```
sh
fugit
# also runs make run in this case
fugitclean
```
</details>
3.
Now we export final PDFs from the
`.xopp`
files into the "Feedback Attachment(s)"
directory.
We run this command from the directory containing all students' submissions,
...
...
This diff is collapsed.
Click to expand it.
fugitclean.sh
+
7
−
0
View file @
a4233ee1
...
...
@@ -2,6 +2,13 @@
# this script cleans all checked out repositories when called from the same folder that contains the grades.csv
# or a singular checked out repo when called from within a student folder
if
[
$#
-gt
1
]
;
then
printf
"Usage: fugitclean
\m
"
>
&2
printf
"cleans all checked out student solutions when called from the grades.csv folder
\n
"
>
&2
printf
"removes a singular checked repo when called from within a students folder"
>
&2
exit
1
fi
if
[
-z
$FU_ANDORRA_USER
]
;
then
# only clean up when not run on ssh
# ssh cleans up itself :)
...
...
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