forked from surge-synthesizer/sst-cpputils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
72 lines (57 loc) · 1.58 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
# Azure Pipeline JUST for PR checks
trigger:
- main
pr:
- main
jobs:
- job: Build
condition: eq(variables['Build.Reason'], 'PullRequest')
strategy:
matrix:
mac:
imageName: 'macos-10.15'
isMac: True
win:
imageName: 'windows-2019'
isWindows: True
lin:
imageName: 'ubuntu-20.04'
isLinux: True
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 1
- bash: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
./build/test-binary/sst-cpputils-tests
displayName: Run tests with cmake
- job: Doxygenate
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
fetchDepth: 1
- task: DownloadSecureFile@1
inputs:
secureFile: sru-token.txt
- bash: |
sudo apt-get install doxygen graphviz
doxygen doxygen/Doxyfile
HASH=`git rev-parse --short HEAD`
TOK=`cat $AGENT_TEMPDIRECTORY/sru-token.txt`
git clone https://surge-rackupdater:${TOK}@github.com/surge-synthesizer/sst-docs
git config --global user.email "surge-rackupdater@dev.null"
git config --global user.name "surge-rackupdater"
mkdir -p sst-docs/docs/sst-cpputils
pushd doxy-out
tar cf - . | (cd ../sst-docs/docs/sst-cpputils && tar xf -)
popd
pushd sst-docs
git add docs
git status
git commit -m "Update sst-utils docs at ${HASH}"
git push origin main
displayName: "Make Doxygen and Commit it"