aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorazure-pipelines[bot] <azure-pipelines[bot]@users.noreply.github.com>2019-05-03 19:58:46 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2019-05-03 19:58:46 -0400
commit68ee59962a1a65452b7f36378c56ed1a80858961 (patch)
tree5a99d6b60217861c78f4d676253e47992f8ff274 /azure-pipelines.yml
parentbc081087c8d079597787ad0b36245a03de346681 (diff)
downloadcryptography-68ee59962a1a65452b7f36378c56ed1a80858961.tar.gz
cryptography-68ee59962a1a65452b7f36378c56ed1a80858961.tar.bz2
cryptography-68ee59962a1a65452b7f36378c56ed1a80858961.zip
Set up CI with Azure Pipelines (#4471)
* Set up CI with Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Moving TOXENV to matrix (#4474) * Update azure-pipelines.yml * Update azure-pipelines.yml
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 00000000..03c8306c
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,54 @@
+jobs:
+- job: 'mac'
+ pool:
+ vmImage: $[variables.vmImage]
+ strategy:
+ matrix:
+ Python27-macOS1013:
+ python.version: '2.7'
+ TOXENV: py27
+ vmImage: 'macOS-10.13'
+ MACOS_VERSION: '10.13'
+ Python37-macOS1013:
+ python.version: '3.7'
+ TOXENV: py37
+ vmImage: 'macOS-10.13'
+ MACOS_VERSION: '10.13'
+ Python27-macOS1014:
+ python.version: '2.7'
+ TOXENV: py27
+ vmImage: 'macOS-10.14'
+ MACOS_VERSION: '10.14'
+ Python37-macOS1014:
+ python.version: '3.7'
+ TOXENV: py37
+ vmImage: 'macOS-10.14'
+ MACOS_VERSION: '10.14'
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '$(python.version)'
+ architecture: 'x64'
+
+ - script: brew install openssl@1.1
+ displayName: 'Install OpenSSL'
+
+ - script: pip install tox codecov
+ displayName: 'Install tox & codecov'
+
+ - script: git clone https://github.com/google/wycheproof
+ displayName: 'Clone wycheproof'
+
+ - script: |
+ set -e
+ set -x
+
+ CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 \
+ LDFLAGS="/usr/local/opt/openssl\\@1.1/lib/libcrypto.a /usr/local/opt/openssl\\@1.1/lib/libssl.a" \
+ CFLAGS="-I/usr/local/opt/openssl\\@1.1/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.9" \
+ tox -r -- --color=yes --wycheproof-root=wycheproof
+ displayName: 'Run tests'
+
+ - script: codecov -e MACOS_VERSION,AGENT_OS,TOXENV
+ displayName: 'Submit coverage'
+ condition: succeeded()