Skip to content
Snippets Groups Projects
Commit 80c23d94 authored by Jiří Helebrant's avatar Jiří Helebrant
Browse files

split CENTR schema check into a separate script

parent 64ab1dfe
No related merge requests found
......@@ -35,7 +35,7 @@ build:
- source pwait.sh
- mkdir public
- python Dashboard/Python/centr_stats.py | jq . > public/centr_stats.json
- if [ $CHECK_CENTR_SCHEMA != "0" ]; then curl "https://stats.centr.org/schemas/registration_data_v2.1.json" > "registration_data_v2.1.json" && check-jsonschema --schemafile registration_data_v2.1.json public/centr_stats.json; fi
- ./check-centr-schema.sh
- shopt -s globstar nullglob nocaseglob nocasematch
- python3 Dashboard/Python/pages.py Dashboard/pages.json
- python3 Dashboard/Python/docs.py > Dashboard/docs.json
......
#!/bin/bash
set -e;
if [ "$CHECK_CENTR_SCHEMA" != "0" ]; then
curl "https://stats.centr.org/schemas/registration_data_v2.1.json" > "registration_data_v2.1.json"
check-jsonschema --schemafile registration_data_v2.1.json public/centr_stats.json
rm "registration_data_v2.1.json"
else
echo "Schema check disabled by env variable"
fi
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment