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

Make the CENTR stats schema check optional via CI env variable...

Make the CENTR stats schema check optional via CI env variable 'CHECK_CENTR_SCHEMA' (set to '0' to disable the check)
parent 2cc1ea3f
No related merge requests found
......@@ -34,9 +34,8 @@ build:
script:
- source pwait.sh
- mkdir public
- curl 'https://stats.centr.org/schemas/registration_data_v2.1.json' > 'registration_data_v2.1.json';
- python Dashboard/Python/centr_stats.py | jq . > public/centr_stats.json
- check-jsonschema --schemafile registration_data_v2.1.json public/centr_stats.json
- [ $CHECK_CENTR_SCHEMA != "0" ] && 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;
- shopt -s globstar nullglob nocaseglob nocasematch
- python3 Dashboard/Python/pages.py Dashboard/pages.json
- python3 Dashboard/Python/docs.py > Dashboard/docs.json
......
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