-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines.yml
78 lines (75 loc) · 2.8 KB
/
azure-pipelines.yml
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
72
73
74
75
76
77
78
# Refer: https://aka.ms/yaml
stages:
- stage: build_test
displayName: Build and Test
jobs:
- job: win_vs2019
displayName: Windows - VS 2019
pool:
vmImage: windows-2019
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: 3.8
- pwsh: tools\get-win-openssl.ps1
displayName: Get OpenSSL for Windows
- script: python -m pip install poetry && poetry install --no-dev
displayName: Install Python deps
- script: |
echo Loading VS environment
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\vsdevcmd" -arch=x64 || exit 1
echo Executing Build and Tests
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f || exit 1
poetry run dagon ci || exit 1
move _build\bpt.exe _build\bpt-win-x64.exe || exit 1
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish Tests
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/pytest-junit.xml'
failTaskOnFailedTests: true
testRunTitle: Windows Tests
- publish: _build\bpt-win-x64.exe
displayName: Publish
artifact: bpt-win-x64
- job: linux_gcc10
displayName: Linux - GCC 10
pool:
vmImage: ubuntu-20.04
steps:
- script: make alpine-static-ci
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish Tests
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/pytest-junit.xml'
failTaskOnFailedTests: true
testRunTitle: Linux Tests
- publish: _build/bpt-linux-x64
displayName: Publish
artifact: bpt-linux-x64
- job: macos_gcc10
displayName: macOS - GCC 10
pool:
vmImage: macOS-10.15
steps:
- script: brew install gcc@10 ccache
displayName: Get GCC 10
- script: brew install [email protected]
displayName: Install OpenSSL
- script: python3 -m pip install poetry
displayName: Get Python Dependencies
- script: make macos-ci
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish Tests
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/pytest-junit.xml'
failTaskOnFailedTests: true
testRunTitle: macOS Tests
- publish: _build/bpt-macos-x64
displayName: Publish
artifact: bpt-macos-x64