version file has been updated to include a travis commit and time of build.

This commit is contained in:
Nicholas Staples
2016-02-01 11:37:22 +00:00
parent 8c20c3e7be
commit cd5a91d4c8
5 changed files with 21 additions and 9 deletions

6
scripts/update_version_file.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
#
# Update the version file of the project from the Travis build details
#
sed -i -e "s/__build__ =.*/__build__ = \"$TRAVIS_COMMIT\"/g" ./app/version.py
sed -i -e "s/__time__ =.*/__time__ = \"$('date +%Y-%m-%d:%H:%M:%S')\"/g" ./app/version.py