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

View File

@@ -3,7 +3,7 @@
## Reference ## Reference
* [ABAP Language Documentation](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm) * [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 ## 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) * 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) * [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)

View File

@@ -1,33 +1,33 @@
{ {
"docs": [ "docs": [
{ {
"uuid": "21b340f7-5709-4bfb-9e6f-b70e452c0d76", "uuid": "21b340f7-5709-4bfb-9e6f-b70e452c0d76",
"slug": "installation", "slug": "installation",
"path": "docs/INSTALLATION.md", "path": "docs/INSTALLATION.md",
"title": "Installing ABAP locally", "title": "Installing ABAP locally",
"blurb": "Learn how to install ABAP locally to solve Exercism's exercises on your own machine" "blurb": "Learn how to install ABAP locally to solve Exercism's exercises on your own machine"
}, },
{ {
"uuid": "21a13a0d-687b-40d2-933e-d510241e10d8", "uuid": "21a13a0d-687b-40d2-933e-d510241e10d8",
"slug": "learning", "slug": "learning",
"path": "docs/LEARNING.md", "path": "docs/LEARNING.md",
"title": "How to learn ABAP", "title": "How to learn ABAP",
"blurb": "An overview of how to get started from scratch with ABAP" "blurb": "An overview of how to get started from scratch with ABAP"
}, },
{ {
"uuid": "e7aa0a32-7ee1-4a39-8f48-8f895ba2a4e9", "uuid": "e7aa0a32-7ee1-4a39-8f48-8f895ba2a4e9",
"slug": "tests", "slug": "tests",
"path": "docs/TESTS.md", "path": "docs/TESTS.md",
"title": "Testing on the ABAP track", "title": "Testing on the ABAP track",
"blurb": "Learn how to test your ABAP exercises on Exercism" "blurb": "Learn how to test your ABAP exercises on Exercism"
}, },
{ {
"uuid": "81756fdb-cbf1-4dd2-966f-59b820c447af", "uuid": "81756fdb-cbf1-4dd2-966f-59b820c447af",
"slug": "resources", "slug": "resources",
"path": "docs/RESOURCES.md", "path": "docs/RESOURCES.md",
"title": "Useful ABAP resources", "title": "Useful ABAP resources",
"blurb": "A collection of useful resources to help you master ABAP" "blurb": "A collection of useful resources to help you master ABAP"
} }
] ]
} }