diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-09-10 08:02:39 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-09-10 08:02:39 -0400 |
commit | 1408880e100691176494a40500de8dd9a1c91d4f (patch) | |
tree | 81c2d7b131d0818d5d46b63cd20a134d5aa27c68 /appveyor.yml | |
parent | fcf7cc598a7562e4ad2d0127933d00c0835beae8 (diff) | |
download | python-coveragepy-1408880e100691176494a40500de8dd9a1c91d4f.tar.gz |
This is like building a ship in a bottle
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml index 2add917..f7a058a 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* |