forked from libdynd/libdynd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
88 lines (82 loc) · 2.04 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
79
80
81
82
83
84
85
86
87
trigger:
# start a new build for every push
batch: False
branches:
include:
- master
pr:
- master
jobs:
- job: MSVC_2017
pool:
vmImage: 'VS2017-Win2016'
strategy:
matrix:
Release:
configuration: Release
Debug:
configuration: Debug
steps:
- script: |
@echo on
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ..
cmake --build . --config %CONFIGURATION% --parallel 4
tests\%CONFIGURATION%\test_libdynd.exe
- job: MSVC_2019
pool:
vmImage: 'windows-2019'
strategy:
matrix:
Release:
configuration: Release
Debug:
configuration: Debug
steps:
- script: |
@echo on
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake --build . --config %CONFIGURATION% --parallel 4
tests\%CONFIGURATION%\test_libdynd.exe
- job: MinGW_w64
pool:
vmImage: 'windows-2019'
strategy:
matrix:
Release:
configuration: Release
Debug:
configuration: Debug
steps:
- script: |
@echo on
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -G "MinGW Makefiles" ..
mingw32-make -j4
tests\test_libdynd.exe
- job: clang
pool:
vmImage: 'windows-2019'
strategy:
matrix:
Release:
configuration: Release
Debug:
configuration: Debug
steps:
- script: |
@echo on
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
curl.exe --output miniconda.exe --url https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
miniconda.exe /S /D=%CD%\miniconda
call miniconda\scripts\activate.bat
cmd.exe /c "conda install -y -q -c conda-forge clangdev=10 cmake ninja"
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -G "Ninja" ..
ninja
tests\test_libdynd.exe