Commit 75c92631 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Updating

parent c9ba3e0b
Loading
Loading
Loading
Loading
Loading
+16 −10
Original line number Diff line number Diff line
@@ -34,20 +34,27 @@ process_xsd:
  script:
    - export PYCHARM_HOSTED=1
    - |
      format_issues=0

      check_count=0
      fail_count=0
      while IFS= read -r -d '' file; do
        let "check_count=check_count+1"      
        if ! forgeschema -c "$file"; then
          echo "❌ failed schema checks for $file"
          format_issues=1
          let "fail_count=fail_count+1"
        fi
        echo ""
        echo "..."
        echo ""
      done < <(find ./testing/xml -type f -name "*.json" -print0)
      if [ "$format_issues" -eq 1 ]; then
      if [ "$fail_count" -gt 0 ]; then
        echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
        echo "❌ Failed schema checks for $fail_count of $check_count files"
        echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
        exit 1
      fi
      echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
      echo "✅ XSD validation OK ($check_count files checked)"  
      echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
      echo "✅ XSD validation OK for $file"

process_json:
@@ -57,7 +64,6 @@ process_json:
  script:
    - export PYCHARM_HOSTED=1
    - |
      format_issues=0
      check_count=0
      fail_count=0
      while IFS= read -r -d '' file; do
@@ -71,14 +77,14 @@ process_json:
        echo ""
      done < <(find ./testing/json -type f -name "*.json" -print0)
      if [ "$fail_count" -gt 0 ]; then
        echo "════════════════════════════════════════════════════════"
        echo "❌ Failed schema checks for $fail_count of $check_count"
        echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
        echo "❌ Failed schema checks for $fail_count of $check_count files"
        echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
        exit 1
        echo "════════════════════════════════════════════════════════"
      fi
      echo "════════════════════════════════════════════════════════"
      echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
      echo "✅ XSD validation OK ($check_count files checked)"  
      echo "════════════════════════════════════════════════════════"
      echo "┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅"
    - forgeschema -s 103120/schema/json/ts_103120_Core.schema.json -u 103120/schema/json -u 103120/dictionaries/ts_103120_Dictionaries.schema.json -u 103280/TS_103_280.schema.json -i 103120/examples/json

lint_xml: