forked from Will-Low/osql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
124 lines (91 loc) · 3.11 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
trigger:
- master
jobs:
# LINUX
- job: Ubuntu1604Build
pool:
vmImage: Ubuntu-16.04
steps:
- script: make sysprep
displayName: "Prepare the system, downloading and installing the necessary"
- script: make -j3
displayName: "Build osql"
env:
SKIP_BENCHMARKS: 1
- script: /usr/local/osquery/bin/ctest --build-nocmake -V
displayName: "Run tests"
workingDirectory: $(Build.SourcesDirectory)/build/linux
- job: CentOS7Build
pool:
vmImage: Ubuntu-16.04
container: trailofbits/osql:centos-7
steps:
- script: make sysprep
displayName: "Prepare the system, downloading and installing the necessary"
- script: make -j3
displayName: "Build osql"
env:
SKIP_BENCHMARKS: 1
- script: /usr/local/osquery/bin/ctest --build-nocmake -V
displayName: "Run tests"
workingDirectory: $(Build.SourcesDirectory)/build/linux
- job: CentOS6Build
pool:
vmImage: Ubuntu-16.04
container: trailofbits/osql:centos-6
steps:
- script: make sysprep
displayName: "Prepare the system, downloading and installing the necessary"
- script: make -j3
displayName: "Build osql"
env:
SKIP_BENCHMARKS: 1
- script: /usr/local/osquery/bin/ctest --build-nocmake -V
displayName: "Run tests"
workingDirectory: $(Build.SourcesDirectory)/build/linux
# WINDOWS
- job: WindowsServer2016Build
pool:
vmImage: vs2017-win2016
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '2.7'
addToPath: true
architecture: 'x64'
- script: tools\make-win64-dev-env.bat -skip windows-sdk
displayName: "Prepare the system, downloading and installing the necessary"
- script: |
mkdir build
cd build
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
cmake $(Build.SourcesDirectory) -G "Visual Studio 15 2017 Win64" -T v141,host=x64
displayName: "Configure the build"
workingDirectory: $(Build.SourcesDirectory)
env:
SKIP_BENCHMARKS: 1
- script: |
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
cmake --build . --config Release
workingDirectory: $(Build.SourcesDirectory)/build
displayName: "Build osql"
- script: |
ctest --build-nocmake -C Release -V
displayName: "Run tests"
workingDirectory: $(Build.SourcesDirectory)/build
# MACOS
- job: macOS1013Build
pool:
vmImage: macos-10.13
steps:
- script: |
unset HOMEBREW_NO_AUTO_UPDATE
make sysprep
displayName: "Prepare the system, downloading and installing the necessary"
- script: make -j3
displayName: "Build osql"
env:
SKIP_BENCHMARKS: 1
- script: /usr/local/osquery/bin/ctest --build-nocmake -V
displayName: "Run tests"
workingDirectory: $(Build.SourcesDirectory)/build/darwin