librenms-librenms/scripts/deploy-schema.sh
Neil Lathwood 284bb19b2e Deploy schema (#6357)
* updated username

* updated username

* updated username

* updated username
2017-04-05 11:47:32 +01:00

15 lines
421 B
Bash
Executable File

#!/bin/bash
GH_REPO="@github.com/librenms/librenms.git"
FULL_REPO="https://${LIBRENMS_TOKEN}$GH_REPO"
git config user.name "librenms-docs"
git config user.email "travis@librenms.org"
DBTEST=1 ./scripts/build-schema.php > misc/db_schema.yaml
STATUS=$(git status -s misc/db_schema.yaml)
if [[ "$STATUS" != "" ]]; then
git commit -a -m "DB Schema updated by travis after $TRAVIS_COMMIT"
git push -q origin master
fi