test py27 with windows container on azure (#4880)

* test py27 with windows container on azure

* refactor a bit

* oops missed this

* show me some autocrlf

* wat

* add a gitattributes to force LF endings.

can't use autocrlf false because we don't control the git clone in azure

* remove thing we don't need

* more things
This commit is contained in:
Paul Kehrer 2019-05-08 18:29:42 -04:00 committed by Alex Gaynor
parent 630b006297
commit fccbfc0fb9
2 changed files with 36 additions and 0 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
*.pem text eol=lf

View file

@ -61,3 +61,38 @@ jobs:
- script: codecov -e MACOS_VERSION,AGENT_OS,TOXENV
displayName: 'Submit coverage'
condition: succeeded()
- job: 'win'
pool:
vmImage: 'windows-2019'
container: $[variables.containerImage]
strategy:
matrix:
Python27-x86:
TOXENV: py27
containerImage: 'pyca/cryptography-runner-windows:py27-x86'
OPENSSL_DIR: 'OpenSSL-Win32-2010'
PYTHON_DIR: 'Python27'
WINDOWS_ARCH: 'x86'
Python27-x86-64:
TOXENV: py27
containerImage: 'pyca/cryptography-runner-windows:py27-x86_64'
OPENSSL_DIR: 'OpenSSL-Win64-2010'
PYTHON_DIR: 'Python27'
WINDOWS_ARCH: 'x86_64'
steps:
- script: C:/%PYTHON_DIR%/Scripts/pip install codecov
displayName: 'Install codecov'
- script: git clone https://github.com/google/wycheproof
displayName: 'Clone wycheproof'
- script: |
set INCLUDE=C:/%OPENSSL_DIR%/include;%INCLUDE%
set LIB=C:/%OPENSSL_DIR%/lib;%LIB%
C:/%PYTHON_DIR%/Scripts/tox -r -- --color=yes --wycheproof-root=wycheproof
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
displayName: 'Run tests'
- script: C:/%PYTHON_DIR%/Scripts/codecov -e AGENT_OS,TOXENV,WINDOWS_ARCH
displayName: 'Submit coverage'
condition: succeeded()