summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-09-10 08:02:39 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-09-10 08:02:39 -0400
commit409ffb2aaa842867950722602126e4f335fc9691 (patch)
tree3a5f30293e33df92090735f21ccb1ef8cf64987c /appveyor.yml
parent9864cca9b5d0a4a7fd2d1d2517f1d09df33ab4cf (diff)
downloadpython-coveragepy-git-409ffb2aaa842867950722602126e4f335fc9691.tar.gz
This is like building a ship in a bottle
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 2add9171..f7a058ad 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -114,6 +114,10 @@ install:
# Install requirements.
- "%CMD_IN_ENV% pip install -r requirements/tox.pip -r requirements/wheel.pip"
+ # Make a python3.4.bat file in the current directory so that tox will find it
+ # and python3.4 will mean what we want it to.
+ - "python -c \"import os; toxenv = os.environ['TOXENV']; bat = open('python{0}.{1}.bat'.format(*toxenv[2:]), 'w'); bat.write(r'@C:\{0}\python %*'.format(os.environ['PYTHON']))\""
+
build_script:
# If not a metacov job, then build wheels and .exe installers.
- if NOT "%COVERAGE_COVERAGE%" == "yes" %CMD_IN_ENV% %PYTHON%\python setup.py bdist_wheel bdist_wininst
@@ -122,7 +126,7 @@ build_script:
- ps: if ( Test-Path 'dist' -PathType Container ) { Get-ChildItem dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName ('dist\' + $_.Name) } }
test_script:
- - "%CMD_IN_ENV% %PYTHON%\\Scripts\\tox --recreate"
+ - "%CMD_IN_ENV% %PYTHON%\\Scripts\\tox"
after_test:
- if "%COVERAGE_COVERAGE%" == "yes" 7z a metacov-win-%TOXENV%.zip %APPVEYOR_BUILD_FOLDER%\.metacov*