Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 670836c2 authored by Karine Bauch's avatar Karine Bauch
Browse files

debug

parent 9bb972e8
No related branches found
No related tags found
No related merge requests found
include:
- remote: "https://gitlab.com/swepy/cicd-templates/release-by-changelog/-/raw/0.4.2/templates/release-by-changelog.yml"
# - remote: "https://${PRIVATE_TOKEN_FROGGIT}@lab.frogg.it/beebryte/cicd/templates/check_json/-/raw/trunk/templates/check_json.yml"
- remote: "https://$PRIVATE_TOKEN_FROGGIT@lab.frogg.it/beebryte/cicd/templates/check_json/-/raw/trunk/templates/check_json.yml"
check_json:
variables:
......@@ -8,20 +8,20 @@ check_json:
script:
- echo "https://$PRIVATE_TOKEN_FROGGIT@lab.frogg.it"
#"invalid check_json":
# extends: check_json
# variables:
# PROJECT_PATH: 'tests/invalid_files'
# script:
# - >
# find $PROJECT_PATH -type f -name '*.json' | while read -r file; do
# jq '.' "$file" > /dev/null || EXIT_CODE=$?;
# if [ $EXIT_CODE != 0 ]; then
# echo "$file"
# echo "check_json found issues as it should"
# else
# echo "$file"
# echo "check_json did not find issues as it should"
# exit 1
# fi
# done
"invalid check_json":
extends: check_json
variables:
PROJECT_PATH: 'tests/invalid_files'
script:
- >
find $PROJECT_PATH -type f -name '*.json' | while read -r file; do
jq '.' "$file" > /dev/null || EXIT_CODE=$?;
if [ $EXIT_CODE != 0 ]; then
echo "$file"
echo "check_json found issues as it should"
else
echo "$file"
echo "check_json did not find issues as it should"
exit 1
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment