From fccbfc0fb97485f27f271fdccc60a7e8a01dc771 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 8 May 2019 18:29:42 -0400 Subject: 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 --- .gitattributes | 1 + azure-pipelines.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..dab8975e --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.pem text eol=lf diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 75b012a8..c068f1c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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() -- cgit v1.2.3