[meld: 1/8] appveyor: Fix build versioning giving errors in appveyor log
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 1/8] appveyor: Fix build versioning giving errors in appveyor log
- Date: Fri, 6 Jul 2018 23:11:37 +0000 (UTC)
commit 42e19b32c1b09ad1d5210b56077c58f091a38592
Author: Vasily Galkin <galkin-vv ya ru>
Date: Fri Jun 22 22:29:18 2018 +0300
appveyor: Fix build versioning giving errors in appveyor log
Trying to access commit information from init stage failed to work
from non-github repos (red errors in console and no revision in build)
So build versioning moved to install stage.
appveyor.yml | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/appveyor.yml b/appveyor.yml
index f189ae6c..2dd91a0e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
-version: tag-or-branch-set-from-init-script.{build}
+version: tag-or-branch-set-dynamically.{build}
# Limit builds to release branches
branches:
@@ -10,20 +10,18 @@ branches:
# TODO: Disabled due to https://github.com/appveyor/ci/issues/1887
# skip_non_tags: true
-init:
- - ps: |
- if ($env:APPVEYOR_REPO_TAG -eq "true") {
- Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER"
- }
- else {
- Update-AppveyorBuild -Version
"$env:APPVEYOR_REPO_BRANCH-$($env:APPVEYOR_REPO_COMMIT.substring(0,7)).$env:APPVEYOR_BUILD_NUMBER"
- }
-
environment:
PYTHON_PREFIX: C:\Python34
PATH: $(PYTHON_PREFIX);$(PYTHON_PREFIX)\Lib\site-packages\gnome;$(PATH)
install:
+ - ps: |
+ if ($env:APPVEYOR_REPO_TAG -eq "true") {
+ Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER
+ } else {
+ Update-AppveyorBuild -Version
$env:APPVEYOR_REPO_BRANCH-$($env:APPVEYOR_REPO_COMMIT.substring(0,7)).$env:APPVEYOR_BUILD_NUMBER
+ }
+
# Install cxFreeze
- cmd: |
python -m pip install pypiwin32==219
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]