aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-05-08 18:29:42 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2019-05-08 18:29:42 -0400
commitfccbfc0fb97485f27f271fdccc60a7e8a01dc771 (patch)
treee71f825a212aae112e86cb9b11204d559588c853
parent630b0062976d57d84532b090fb6359abf4af82b6 (diff)
downloadcryptography-fccbfc0fb97485f27f271fdccc60a7e8a01dc771.tar.gz
cryptography-fccbfc0fb97485f27f271fdccc60a7e8a01dc771.tar.bz2
cryptography-fccbfc0fb97485f27f271fdccc60a7e8a01dc771.zip
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
-rw-r--r--.gitattributes1
-rw-r--r--azure-pipelines.yml35
2 files changed, 36 insertions, 0 deletions
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()