Browse Source
Merge pull request #233 from probonopd/TheAssassin/fix-version-information
Fix version information (fixes #232)
master
TheAssassin
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
2 deletions
-
tests/tests-ci.sh
-
tools/linuxdeployqt/linuxdeployqt.pro
|
|
@ -39,6 +39,10 @@ ulimit -a -H |
|
|
|
# error handling performed separately |
|
|
|
set +e |
|
|
|
|
|
|
|
# print version number |
|
|
|
./linuxdeployqt-*-x86_64.AppImage --version |
|
|
|
|
|
|
|
# TODO: reactivate tests |
|
|
|
#bash -e tests/tests.sh |
|
|
|
true |
|
|
|
RESULT=$? |
|
|
|
|
|
@ -24,10 +24,14 @@ DEFINES += LINUXDEPLOYQT_GIT_COMMIT="'\"$(shell git rev-parse --short HEAD)\"'" |
|
|
|
|
|
|
|
DEFINES += BUILD_DATE="'\"$(shell env LC_ALL=C date -u '+%Y-%m-%d %H:%M:%S %Z')\"'" |
|
|
|
|
|
|
|
equals($$(TRAVIS_BUILD_NUMBER), "") { |
|
|
|
_BUILD_NUMBER = $$(TRAVIS_BUILD_NUMBER) |
|
|
|
|
|
|
|
isEmpty(_BUILD_NUMBER) { |
|
|
|
message(Not building on Travis CI, tagging build as local dev build) |
|
|
|
DEFINES += BUILD_NUMBER="'\"<local dev build>\"'" |
|
|
|
} else { |
|
|
|
DEFINES += BUILD_NUMBER="'\"$$(TRAVIS_BUILD_NUMBER)\"'" |
|
|
|
message(Building on Travis CI build, build number $$_BUILD_NUMBER) |
|
|
|
DEFINES += BUILD_NUMBER="'\"$$_BUILD_NUMBER\"'" |
|
|
|
} |
|
|
|
|
|
|
|
DEFINES += LINUXDEPLOYQT_VERSION="'\"$(shell git describe --tags $(shell git rev-list --tags --skip=1 --max-count=1) --abbrev=0)\"'" |
|
|
|