Files
GS13NG/tools/travis/build_tools.sh
T
LeoandCitadelStationBot 0dc826735b Adds a python script to load jsons to prevent any syntax error on them (#33001)
* Adds a python script to load jsons to prevent any syntax error on them

* Corrects identation on hallucination.json
2017-11-24 12:59:41 -06:00

17 lines
581 B
Bash
Executable File

#!/bin/bash
#must also be bash for the md5sum commands
set -e
if [ "$BUILD_TOOLS" = true ];
then
md5sum -c - <<< "49bc6b1b9ed56c83cceb6674bd97cb34 *html/changelogs/example.yml";
cd tgui && source ~/.nvm/nvm.sh && gulp && cd ..;
phpenv global 5.6
php -l tools/WebhookProcessor/github_webhook_processor.php;
php -l tools/TGUICompiler.php;
echo "Checking for JSON errors";
find . -name "*.json" -not -path "./tgui/node_modules/*" | xargs -0 python3 ./tools/json_verifier.py;
python tools/ss13_genchangelog.py html/changelog.html html/changelogs;
fi;