Populate version data with build number and fixed date

This commit is contained in:
Martyn Inglis
2016-03-03 15:06:10 +00:00
parent aaedd4d054
commit b818e1a535
2 changed files with 3 additions and 1 deletions

View File

@@ -1,2 +1,3 @@
__build__ = "" __build__ = ""
__time__ = "" __time__ = ""
__travis_build__ = ""

View File

@@ -3,4 +3,5 @@
# Update the version file of the project from the Travis build details # 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/__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 sed -i -e "s/__travis_build__ =.*/__build__ = \"$TRAVIS_BUILD_NUMBER\"/g" ./app/version.py
sed -i -e "s/__time__ =.*/__time__ = \"$(date +%Y-%m-%d:%H:%M:%S)\"/g" ./app/version.py