Skip to content
Snippets Groups Projects
Commit 6353f3ad authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Option de configuration pour utiliser docker ou etre statique

parent 118c2eb3
Branches
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ target=variable io if loop function vector1D vector2D
\email{Nicolas.Thiery@u-psud.fr}
\format{html}
\integer{static=1}
\text{module_data=modules/devel/nthiery/test~coding~readingCppPrograms.fr/data/}
\text{programs=wims(lookup TARGET in data/index)}
\text{program=randomitem(\programs)}
......@@ -55,7 +56,11 @@ target=variable io if loop function vector1D vector2D
\text{answer=wims(lines2words wims(record 0 of data/\program.answer))}
}{
\text{answerstyle=symtext}
\text{answer=wims(lines2words wims(exec docker-compile-and-run \module_data/\program))}
\if{static == 1}{
\text{answer=wims(lines2words wims(record 0 of data/\program.answer))}
}{
\text{answer=wims(lines2words wims(exec docker-compile-and-run \module_data/\program))}
}
}
\css{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment