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 6ed58e0b authored by Karine Bauch's avatar Karine Bauch
Browse files

debug

parent 168457d3
No related branches found
No related tags found
No related merge requests found
include: include:
- remote: "https://gitlab.com/swepy/cicd-templates/release-by-changelog/-/raw/0.4.2/templates/release-by-changelog.yml" - 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: check_json:
extends: .check_json
variables: variables:
PROJECT_PATH: 'tests/valid_files' PROJECT_PATH: 'tests/valid_files'
"invalid check_json":
extends: check_json
variables:
PROJECT_PATH: 'tests/invalid_files'
script: script:
- > - echo "That works"
find $PROJECT_PATH -type f -name '*.json' | while read -r file; do
jq '.' "$file" > /dev/null || EXIT_CODE=$?; #"invalid check_json":
if [ $EXIT_CODE != 0 ]; then # extends: check_json
echo "$file" # variables:
echo "check_json found issues as it should" # PROJECT_PATH: 'tests/invalid_files'
else # script:
echo "$file" # - >
echo "check_json did not find issues as it should" # find $PROJECT_PATH -type f -name '*.json' | while read -r file; do
exit 1 # jq '.' "$file" > /dev/null || EXIT_CODE=$?;
fi # if [ $EXIT_CODE != 0 ]; then
done # 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