Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoAssignmentChecker
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Pipelines
DojoAssignmentChecker
Commits
21f06ad6
Commit
21f06ad6
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
App => Display result in boxen
parent
5098cebb
No related branches found
No related tags found
No related merge requests found
Pipeline
#26619
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AssignmentChecker/src/app.ts
+10
-13
10 additions, 13 deletions
AssignmentChecker/src/app.ts
AssignmentChecker/src/sharedByClients
+1
-1
1 addition, 1 deletion
AssignmentChecker/src/sharedByClients
with
11 additions
and
14 deletions
AssignmentChecker/src/app.ts
+
10
−
13
View file @
21f06ad6
...
@@ -8,13 +8,14 @@ const myEnv = require('dotenv').config({
...
@@ -8,13 +8,14 @@ const myEnv = require('dotenv').config({
require
(
'
dotenv-expand
'
).
expand
(
myEnv
);
require
(
'
dotenv-expand
'
).
expand
(
myEnv
);
require
(
'
./shared/helpers/TypeScriptExtensions
'
);
// ATTENTION : This line MUST be the second of this file
require
(
'
./shared/helpers/TypeScriptExtensions
'
);
// ATTENTION : This line MUST be the second of this file
import
AssignmentValidator
from
'
./sharedByClients/helpers/Dojo/AssignmentValidator
'
;
import
ClientsSharedAssignmentHelper
from
'
./sharedByClients/helpers/Dojo/ClientsSharedAssignmentHelper
'
;
import
Styles
from
'
./types/Style
'
;
import
AssignmentValidator
from
'
./sharedByClients/helpers/Dojo/AssignmentValidator
'
;
import
{
exec
}
from
'
child_process
'
;
import
Styles
from
'
./types/Style
'
;
import
util
from
'
util
'
;
import
{
exec
}
from
'
child_process
'
;
import
HttpManager
from
'
./managers/HttpManager
'
;
import
util
from
'
util
'
;
import
Config
from
'
./config/Config
'
;
import
HttpManager
from
'
./managers/HttpManager
'
;
import
Icon
from
'
./sharedByClients/types/Icon
'
;
import
Config
from
'
./config/Config
'
;
import
Icon
from
'
./sharedByClients/types/Icon
'
;
(
async
()
=>
{
(
async
()
=>
{
...
@@ -42,12 +43,6 @@ import Icon from './sharedByClients/types/Icon';
...
@@ -42,12 +43,6 @@ import Icon from './sharedByClients/types/Icon';
}
}
});
});
assignmentValidator
.
events
.
on
(
'
endStep
'
,
(
stepName
:
string
,
message
:
string
,
error
:
boolean
)
=>
{
if
(
error
)
{
console
.
error
(
Styles
.
ERROR
(
`
${
Icon
.
ERROR
}
${
message
}
`
));
}
});
assignmentValidator
.
events
.
on
(
'
finished
'
,
(
success
:
boolean
,
exitCode
:
number
)
=>
{
assignmentValidator
.
events
.
on
(
'
finished
'
,
(
success
:
boolean
,
exitCode
:
number
)
=>
{
success
?
resolve
()
:
reject
();
success
?
resolve
()
:
reject
();
});
});
...
@@ -56,5 +51,7 @@ import Icon from './sharedByClients/types/Icon';
...
@@ -56,5 +51,7 @@ import Icon from './sharedByClients/types/Icon';
});
});
}
catch
(
error
)
{
}
}
catch
(
error
)
{
}
ClientsSharedAssignmentHelper
.
displayExecutionResults
(
assignmentValidator
,
`The assignment is ready to be published.`
,
Styles
);
process
.
exit
(
assignmentValidator
.
exitCode
);
process
.
exit
(
assignmentValidator
.
exitCode
);
})();
})();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sharedByClients
@
b22af108
Compare
1ed34ef2
...
b22af108
Subproject commit
1ed34ef2260dc08c92dfee96d9ba8a10e98eae22
Subproject commit
b22af10834e18c944606d5822b4446467792fbf8
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