Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoExerciseChecker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External 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
Dojo Project (HES-SO)
Projects
Pipelines
DojoExerciseChecker
Commits
2a5164fb
Commit
2a5164fb
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
Review steps numbers
parent
6bd72c6e
No related branches found
No related tags found
No related merge requests found
Pipeline
#25787
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ExerciceChecker/src/app.ts
+5
-5
5 additions, 5 deletions
ExerciceChecker/src/app.ts
with
5 additions
and
5 deletions
ExerciceChecker/src/app.ts
+
5
−
5
View file @
2a5164fb
...
@@ -35,7 +35,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
...
@@ -35,7 +35,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
let
exerciceResultsValidation
:
ExerciceResultsValidation
;
let
exerciceResultsValidation
:
ExerciceResultsValidation
;
/*
/*
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step 1
& 2
:
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step 1:
- Read the dojo enonce file from the enonce repository
- Read the dojo enonce file from the enonce repository
- Download immutables files (maybe throw or show an error if the files have been modified ?)
- Download immutables files (maybe throw or show an error if the files have been modified ?)
*/
*/
...
@@ -56,7 +56,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
...
@@ -56,7 +56,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
/*
/*
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
3 & 4 & 5
:
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
2
:
- Get override of docker-compose file (for override the volume by a bind mount to the results folder shared between dind and the host)
- Get override of docker-compose file (for override the volume by a bind mount to the results folder shared between dind and the host)
- Run docker-compose file
- Run docker-compose file
- Get logs from linked services
- Get logs from linked services
...
@@ -99,7 +99,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
...
@@ -99,7 +99,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
6
: Check content requirements and content size
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
3
: Check content requirements and content size
{
{
exerciceResultsValidation
=
new
ExerciceResultsValidation
(
Config
.
folders
.
resultsDojo
,
Config
.
folders
.
resultsExercice
);
exerciceResultsValidation
=
new
ExerciceResultsValidation
(
Config
.
folders
.
resultsDojo
,
Config
.
folders
.
resultsExercice
);
...
@@ -129,7 +129,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
...
@@ -129,7 +129,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
7
: Upload and show the results
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
4
: Upload and show the results
{
{
try
{
try
{
console
.
log
(
Styles
.
INFO
(
`
${
Icon
.
INFO
}
Uploading results to the dojo server`
));
console
.
log
(
Styles
.
INFO
(
`
${
Icon
.
INFO
}
Uploading results to the dojo server`
));
...
@@ -152,7 +152,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
...
@@ -152,7 +152,7 @@ import ClientsSharedExerciceHelper from './sharedByClients/helpers/Dojo/ClientsS
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
8
: Exit with container exit code
//////////////////////////////////////////////////////////////////////////////////////////////////////////// Step
5
: Exit with container exit code
{
{
ClientsSharedExerciceHelper
.
displayExecutionResults
(
exerciceResultsValidation
.
exerciceResults
!
,
exerciceDockerCompose
.
exitCode
,
Styles
);
ClientsSharedExerciceHelper
.
displayExecutionResults
(
exerciceResultsValidation
.
exerciceResults
!
,
exerciceDockerCompose
.
exitCode
,
Styles
);
}
}
...
...
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