Fixed version file to use new names

This commit is contained in:
Martyn Inglis
2016-03-03 16:27:13 +00:00
parent bfe0ef5520
commit 9b28a6d4ad
2 changed files with 5 additions and 16 deletions

View File

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