@@ -6,6 +6,123 @@ trigger:
66- maint/*
77
88jobs :
9+ - job : linux_amd64_trusty_gcc_openssl
10+ displayName : ' Linux (amd64; Trusty; GCC; OpenSSL)'
11+ pool :
12+ vmImage : ' Ubuntu 16.04'
13+ steps :
14+ - template : azure-pipelines/docker.yml
15+ parameters :
16+ imageName : ' libgit2/trusty-amd64:latest'
17+ environmentVariables : |
18+ CC=gcc
19+ CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON
20+ LEAK_CHECK=valgrind
21+
22+ - job : linux_amd64_trusty_gcc_mbedtls
23+ displayName : ' Linux (amd64; Trusty; GCC; mbedTLS)'
24+ pool :
25+ vmImage : ' Ubuntu 16.04'
26+ steps :
27+ - template : azure-pipelines/docker.yml
28+ parameters :
29+ imageName : ' libgit2/trusty-amd64:latest'
30+ environmentVariables : |
31+ CC=gcc
32+ CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS -DDEPRECATE_HARD=ON
33+ LEAK_CHECK=valgrind
34+
35+ - job : linux_amd64_trusty_clang_openssl
36+ displayName : ' Linux (amd64; Trusty; Clang; OpenSSL)'
37+ pool :
38+ vmImage : ' Ubuntu 16.04'
39+ steps :
40+ - template : azure-pipelines/docker.yml
41+ parameters :
42+ imageName : ' libgit2/trusty-amd64:latest'
43+ environmentVariables : |
44+ CC=clang
45+ CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON
46+ LEAK_CHECK=valgrind
47+
48+ - job : linux_amd64_trusty_clang_mbedtls
49+ displayName : ' Linux (amd64; Trusty; Clang; mbedTLS)'
50+ pool :
51+ vmImage : ' Ubuntu 16.04'
52+ steps :
53+ - template : azure-pipelines/docker.yml
54+ parameters :
55+ imageName : ' libgit2/trusty-amd64:latest'
56+ environmentVariables : |
57+ CC=clang
58+ CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS -DDEPRECATE_HARD=ON
59+ LEAK_CHECK=valgrind
60+
61+ - job : macos
62+ displayName : ' macOS'
63+ pool :
64+ vmImage : ' macOS 10.13'
65+ steps :
66+ - bash : . '$(Build.SourcesDirectory)/ci/setup-osx.sh'
67+ displayName : Setup
68+ - template : azure-pipelines/bash.yml
69+ parameters :
70+ environmentVariables :
71+ TMPDIR : $(Agent.TempDirectory)
72+ PKG_CONFIG_PATH : /usr/local/opt/openssl/lib/pkgconfig
73+ LEAK_CHECK : leaks
74+ CMAKE_OPTIONS : -G Ninja -DDEPRECATE_HARD=ON
75+ SKIP_SSH_TESTS : true
76+
77+ - job : windows_vs_amd64
78+ displayName : ' Windows (amd64; Visual Studio)'
79+ pool : Hosted
80+ steps :
81+ - template : azure-pipelines/powershell.yml
82+ parameters :
83+ environmentVariables :
84+ CMAKE_OPTIONS : -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013 Win64" -DDEPRECATE_HARD=ON
85+
86+ - job : windows_vs_x86
87+ displayName : ' Windows (x86; Visual Studio)'
88+ pool : Hosted
89+ steps :
90+ - template : azure-pipelines/powershell.yml
91+ parameters :
92+ environmentVariables :
93+ CMAKE_OPTIONS : -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
94+
95+ - job : windows_mingw_amd64
96+ displayName : ' Windows (amd64; MinGW)'
97+ pool : Hosted
98+ steps :
99+ - powershell : . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
100+ displayName : Setup
101+ env :
102+ TEMP : $(Agent.TempDirectory)
103+ ARCH : amd64
104+ - template : azure-pipelines/powershell.yml
105+ parameters :
106+ environmentVariables :
107+ CMAKE_OPTIONS : -G"MinGW Makefiles" -DDEPRECATE_HARD=ON
108+ PATH : $(Agent.TempDirectory)\mingw64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
109+
110+ - job : windows_mingw_x86
111+ displayName : ' Windows (x86; MinGW)'
112+ pool : Hosted
113+ steps :
114+ - powershell : . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
115+ displayName : Setup
116+ workingDirectory : ' $(Build.BinariesDirectory)'
117+ env :
118+ TEMP : $(Agent.TempDirectory)
119+ ARCH : x86
120+ - template : azure-pipelines/powershell.yml
121+ parameters :
122+ environmentVariables :
123+ CMAKE_OPTIONS : -G"MinGW Makefiles" -DDEPRECATE_HARD=ON
124+ PATH : $(Agent.TempDirectory)\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
125+
9126- job : documentation
10127 displayName : ' Generate Documentation'
11128 pool :
@@ -17,18 +134,14 @@ jobs:
17134 docker run --rm -v /home/vsts/work/1/s:/src -w /src libgit2/docurium:test cm doc api.docurium
18135 git checkout gh-pages
19136 cp -R * '$(Build.BinariesDirectory)'
20- displayName: 'Generate Documentation'
21137 - task : archivefiles@2
22138 displayName : ' Archive Documentation'
23139 inputs :
24140 rootFolderOrFile : ' $(Build.BinariesDirectory)'
25141 includeRootFolder : false
26142 archiveFile : ' $(Build.ArtifactStagingDirectory)/api-documentation.zip'
27143 - task : publishbuildartifacts@1
28- displayName : ' Upload Documentation Artifact '
144+ displayName : ' Upload Documentation'
29145 inputs :
30146 pathToPublish : ' $(Build.ArtifactStagingDirectory)'
31147 artifactName : ' docs'
32- - script : git push origin gh-pages
33- displayName : ' Publish Documentation'
34- condition : eq(variables['Build.Reason'], 'IndividualCI')
0 commit comments