Fix CI after v2 update, add few links + fix typo (#67)

This commit is contained in:
Lars Hvam
2022-02-11 15:34:39 +01:00
committed by GitHub
parent bc30c17324
commit b03be27bcd
3 changed files with 44 additions and 40 deletions

View File

@@ -33,9 +33,7 @@ exit_code=0
for practice_exercise_dir in ./exercises/practice/*/; do
if [ -d $practice_exercise_dir ]; then
echo "Checking $(basename "${practice_exercise_dir}") exercise..."
printf '{"version":1,"status":"pass"}' > $(realpath "${practice_exercise_dir}")/expected_results.json
results_file_path="$(realpath "${practice_exercise_dir}")/results.json"
expected_results_file_path="$(realpath "${practice_exercise_dir}")/expected_results.json"
cp $(realpath "${practice_exercise_dir}")/.meta/*.clas.abap $(realpath "${practice_exercise_dir}")
/usr/bin/time -f 'Docker total runtime: %e seconds' docker run \
--rm \
@@ -44,12 +42,15 @@ for practice_exercise_dir in ./exercises/practice/*/; do
--mount type=bind,src="$(realpath "${practice_exercise_dir}")",dst=/output \
--tmpfs /tmp:rw \
exercism/abap-test-runner $(basename "${practice_exercise_dir}") "/solution" "/output"
errors="$(diff "${results_file_path}" "${expected_results_file_path}")"
printf "$errors"
cat "${results_file_path}"
errors="$(cat "${results_file_path}" | grep "{\"version\":2,\"status\":\"pass\"" )"
if [ -z ${errors} ];
then printf "No Errors\n\n";
else exit_code=1;
then
printf "\nError\n\n\n";
exit_code=1;
else
printf "\nNo Errors\n\n\n";
fi
fi
done

View File

@@ -3,7 +3,7 @@
## Reference
* [ABAP Language Documentation](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm)
* [Clean ABAP Guidelines](https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md) and [cheatsheet](https://github.com/SAP/styleguides/blob/main/clean-abap/cheat-sheet/CheatSheet.md)
* [Clean ABAP Guidelines](https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md) and [cheat-sheet](https://github.com/SAP/styleguides/blob/main/clean-abap/cheat-sheet/CheatSheet.md)
## Tutorials
@@ -13,5 +13,8 @@
* Free online classes at [openSAP](https://open.sap.com/courses?q=abap) in particular [Writing Testable Code in ABAP](https://open.sap.com/courses/wtc1)
* [SAP Learning Journey and Certification](https://training.sap.com/trainingpath/Database+&+Technology-Development-ABAP+Core) (paid)
* [ABAP Accademy](https://abapacademy.com/) (paid)
* [ABAP Academy](https://abapacademy.com/) (paid)
## Open Source ABAP
* [abapGit](https://abapgit.org)
* [dotabap.org](https://dotabap.org)