diff options
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 35 |
1 files changed, 35 insertions, 0 deletions
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() |