-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/adaptive-learning/competency-link-weight' into …
…feature/adaptive-learning/competency-link-weight-usage
- Loading branch information
Showing
126 changed files
with
6,343 additions
and
1,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ public enum ProgrammingLanguage { | |
R, | ||
RUST, | ||
SWIFT, | ||
TYPESCRIPT, | ||
VHDL, | ||
EMPTY | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
export AEOLUS_INITIAL_DIRECTORY=${PWD} | ||
install_dependencies () { | ||
echo '⚙️ executing install_dependencies' | ||
npm ci --prefer-offline --no-audit | ||
} | ||
|
||
build () { | ||
echo '⚙️ executing build' | ||
npm run build | ||
} | ||
|
||
test () { | ||
echo '⚙️ executing test' | ||
npm run test:ci | ||
} | ||
|
||
main () { | ||
if [[ "${1}" == "aeolus_sourcing" ]]; then | ||
return 0 # just source to use the methods in the subshell, no execution | ||
fi | ||
local _script_name | ||
_script_name=${BASH_SOURCE[0]:-$0} | ||
cd "${AEOLUS_INITIAL_DIRECTORY}" | ||
bash -c "source ${_script_name} aeolus_sourcing; install_dependencies" | ||
cd "${AEOLUS_INITIAL_DIRECTORY}" | ||
bash -c "source ${_script_name} aeolus_sourcing; build" | ||
cd "${AEOLUS_INITIAL_DIRECTORY}" | ||
bash -c "source ${_script_name} aeolus_sourcing; test" | ||
} | ||
|
||
main "${@}" |
16 changes: 16 additions & 0 deletions
16
src/main/resources/templates/aeolus/typescript/default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
api: v0.0.1 | ||
metadata: | ||
name: TypeScript | ||
description: Run tests using Jest | ||
actions: | ||
- name: install_dependencies | ||
script: 'npm ci --prefer-offline --no-audit' | ||
- name: build | ||
script: 'npm run build' | ||
- name: test | ||
script: 'npm run test:ci' | ||
runAlways: false | ||
results: | ||
- name: junit | ||
path: 'junit.xml' | ||
type: junit |
62 changes: 62 additions & 0 deletions
62
src/main/resources/templates/jenkins/typescript/regularRuns/pipeline.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* This file configures the actual build steps for the automatic grading. | ||
* | ||
* !!! | ||
* For regular exercises, there is no need to make changes to this file. | ||
* Only this base configuration is actively supported by the Artemis maintainers | ||
* and/or your Artemis instance administrators. | ||
* !!! | ||
*/ | ||
|
||
dockerImage = '#dockerImage' | ||
dockerFlags = '#dockerArgs' | ||
|
||
/** | ||
* Main function called by Jenkins. | ||
*/ | ||
void testRunner() { | ||
docker.image(dockerImage).inside(dockerFlags) { c -> | ||
runTestSteps() | ||
} | ||
} | ||
|
||
private void runTestSteps() { | ||
test() | ||
} | ||
|
||
/** | ||
* Run unit tests | ||
*/ | ||
private void test() { | ||
stage('Install Dependencies') { | ||
sh 'npm ci --prefer-offline --no-audit' | ||
} | ||
stage('Build') { | ||
sh 'npm run build' | ||
} | ||
stage('Test') { | ||
sh 'npm run test:ci' | ||
} | ||
} | ||
|
||
/** | ||
* Script of the post build tasks aggregating all JUnit files in $WORKSPACE/results. | ||
* | ||
* Called by Jenkins. | ||
*/ | ||
void postBuildTasks() { | ||
sh ''' | ||
rm -rf results | ||
mkdir results | ||
if [ -e junit.xml ] | ||
then | ||
sed -i 's/<testsuites[^>]*>/<testsuite>/g ; s/<\\/testsuites>/<\\/testsuite>/g' junit.xml | ||
fi | ||
cp junit.xml $WORKSPACE/results/ || true | ||
sed -i 's/[^[:print:]\t]/�/g' $WORKSPACE/results/*.xml || true | ||
''' | ||
} | ||
|
||
// very important, do not remove | ||
// required so that Jenkins finds the methods defined in this script | ||
return this |
Oops, something went wrong.