Skip to content

Commit 3aa24d2

Browse files
author
cboos
committedJan 29, 2017
1.2.1dev: merge [15385,15387,15389] from 1.0-stable (Makefile and AppVeyor)
r15389 was actually undone, as using `$(PYTHON)` instead of `python` is what we do since 1.2... git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.2-stable@15390 af82e41b-90c4-0310-8c96-b1721e28e2e2
1 parent 4222ccf commit 3aa24d2

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed
 

‎.appveyor.yml

+2
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ test_script:
5050
. .\contrib\appveyor.ps1
5151
5252
Trac-Tests
53+
artifacts:
54+
- path: 'dist\*'

‎Makefile

+9-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ define HELP
4040
help-release tasks and configuration for preparing a Trac release
4141
help-misc several other tasks
4242

43+
help-all all the tasks at a glance...
4344
endef
4445
# `
4546
export HELP
@@ -59,7 +60,7 @@ export HELP_CFG
5960
#
6061
# ----------------------------------------------------------------------------
6162

62-
.PHONY: all help status clean clean-bytecode clean-mo
63+
.PHONY: all help help-all status clean clean-bytecode clean-mo
6364

6465
%.py : status
6566
$(PYTHON) setup.py -q test -s $(subst /,.,$(@:.py=)).test_suite $(testopts)
@@ -74,6 +75,13 @@ endif
7475
help: Makefile.cfg
7576
@echo "$$HELP"
7677

78+
help_variables = $(filter HELP_%,$(.VARIABLES))
79+
help_targets = $(filter-out help-CFG,$(help_variables:HELP_%=help-%))
80+
81+
.SECONDEXPANSION:
82+
help-all: $$(sort $$(help_targets))
83+
84+
7785
help-%: Makefile.cfg
7886
@echo "$${HELP_$*}"
7987

‎contrib/appveyor.ps1

+21-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ $pipCommonPackages = @(
5959
'configobj',
6060
'docutils',
6161
'pygments',
62-
'pytz'
62+
'pytz',
63+
'wheel'
6364
)
6465

6566
$fcrypt = "$deps\fcrypt-1.3.1.tar.gz"
@@ -153,6 +154,7 @@ if (-not $env:APPVEYOR) {
153154
function Add-AppveyorMessage() { Debug-Caller @args }
154155
function Add-AppveyorTest() { Debug-Caller @args }
155156
function Update-AppveyorTest() { Debug-Caller @args }
157+
function Push-AppveyorArtifact() { Debug-Caller @args }
156158
}
157159

158160

@@ -267,7 +269,7 @@ function Trac-Install {
267269
-Category Information
268270
}
269271

270-
& pip list
272+
& pip list --format=columns
271273

272274
# Prepare local Makefile.cfg
273275

@@ -405,7 +407,7 @@ function Trac-Tests {
405407
-Duration $msecs
406408
}
407409

408-
$exit = 0
410+
$exit = $fexit = 0
409411

410412
#
411413
# Running unit-tests
@@ -419,7 +421,16 @@ function Trac-Tests {
419421
#
420422

421423
Make-Test -Goal functional-test -Name "Functional tests for $config" `
422-
-Code ([ref]$exit)
424+
-Code ([ref]$fexit)
425+
426+
if (-not $fexit -eq 0) {
427+
Write-Host "Saving functional logs in testenv.zip"
428+
& 7z.exe a testenv.zip testenv
429+
430+
Push-AppveyorArtifact testenv.zip
431+
432+
$exit = $fexit
433+
}
423434

424435
if (-not $exit -eq 0) {
425436
Write-Host "Exiting with code $exit"
@@ -429,4 +440,10 @@ function Trac-Tests {
429440
if (-not $skipTests) {
430441
Write-Host "All tests passed."
431442
}
443+
444+
#
445+
# Prepare release artifacts
446+
#
447+
448+
& make.exe release-src wininst
432449
}

0 commit comments

Comments
 (0)
Please sign in to comment.