diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2019-09-24 07:11:18 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2019-10-04 07:07:47 +0300 |
commit | f6fc30db22925b5d872ebff96ce179164e12f138 (patch) | |
tree | 675b4a7339f086294e774ab9fd339d9499074230 /scripts | |
parent | 46776df2b0fdf8041876bf107a101b3ed92fb984 (diff) |
Azure Pipelines: get Mumble version with mumble-version.py
This commit changes the Linux build script so that it retrieves the full Mumble version using mumble-version.py.
Previously we were using the first 7 characters of the commit hash as version, which is not very descriptive.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/azure-pipelines/build_linux.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/azure-pipelines/build_linux.bash b/scripts/azure-pipelines/build_linux.bash index 0c29c8153..f22f16396 100755 --- a/scripts/azure-pipelines/build_linux.bash +++ b/scripts/azure-pipelines/build_linux.bash @@ -5,7 +5,9 @@ # that can be found in the LICENSE file at the root of the # Mumble source tree or at <https://www.mumble.info/LICENSE>. -qmake -recursive CONFIG+="release tests warnings-as-errors" DEFINES+="MUMBLE_VERSION=${BUILD_SOURCEVERSION:0:7}" +ver=$(python scripts/mumble-version.py) + +qmake -recursive CONFIG+="release tests warnings-as-errors" DEFINES+="MUMBLE_VERSION=${ver}" make -j $(nproc) && make check |