blob: cd979e027c332bbb3963a63eac98979dc018a65e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
variables:
agent.preferPowerShellOnContainers: true
trigger:
branches:
include:
- "master"
- "*.x"
tags:
include:
- "*"
pr:
- "*"
jobs:
- job: 'mac'
pool:
vmImage: $[variables.vmImage]
strategy:
matrix:
Python27-macOS1014:
python.version: '2.7'
TOXENV: py27
vmImage: 'macOS-10.14'
MACOS_VERSION: '10.14'
Python38-macOS1014:
python.version: '3.8'
TOXENV: py38
vmImage: 'macOS-10.14'
MACOS_VERSION: '10.14'
Python27-macOS1015:
python.version: '2.7'
TOXENV: py27
vmImage: 'macOS-10.15'
MACOS_VERSION: '10.15'
Python38-macOS1015:
python.version: '3.8'
TOXENV: py38
vmImage: 'macOS-10.15'
MACOS_VERSION: '10.15'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: brew update
displayName: 'brew update'
- 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()
|