9 - job: linux_amd64_xenial_gcc_openssl
10 displayName: 'Linux (amd64; Xenial; GCC; OpenSSL)'
12 vmImage: 'ubuntu-18.04'
14 - template: azure-pipelines/docker.yml
19 environmentVariables: |
22 CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DREGEX_BACKEND=builtin -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON
23 GITTEST_NEGOTIATE_PASSWORD=${{ variables.GITTEST_NEGOTIATE_PASSWORD }}
25 - job: linux_amd64_xenial_gcc_mbedtls
26 displayName: 'Linux (amd64; Xenial; GCC; mbedTLS)'
28 vmImage: 'ubuntu-18.04'
30 - template: azure-pipelines/docker.yml
35 environmentVariables: |
38 CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DUSE_SHA1=HTTPS -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON
39 GITTEST_NEGOTIATE_PASSWORD=${{ variables.GITTEST_NEGOTIATE_PASSWORD }}
41 - job: linux_amd64_xenial_clang_openssl
42 displayName: 'Linux (amd64; Xenial; Clang; OpenSSL)'
44 vmImage: 'ubuntu-18.04'
46 - template: azure-pipelines/docker.yml
51 environmentVariables: |
54 CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON
55 GITTEST_NEGOTIATE_PASSWORD=${{ variables.GITTEST_NEGOTIATE_PASSWORD }}
57 - job: linux_amd64_xenial_clang_mbedtls
58 displayName: 'Linux (amd64; Xenial; Clang; mbedTLS)'
60 vmImage: 'ubuntu-18.04'
62 - template: azure-pipelines/docker.yml
67 environmentVariables: |
70 CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DUSE_SHA1=HTTPS -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON
71 GITTEST_NEGOTIATE_PASSWORD=${{ variables.GITTEST_NEGOTIATE_PASSWORD }}
74 displayName: 'macOS (amd64; 10.15)'
76 vmImage: 'macOS-10.15'
78 - bash: . '$(Build.SourcesDirectory)/azure-pipelines/setup-osx.sh'
80 - template: azure-pipelines/bash.yml
83 TMPDIR: $(Agent.TempDirectory)
84 PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
85 CMAKE_GENERATOR: Ninja
86 CMAKE_OPTIONS: -DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
88 GITTEST_NEGOTIATE_PASSWORD: ${{ variables.GITTEST_NEGOTIATE_PASSWORD }}
90 - job: windows_vs_amd64
91 displayName: 'Windows (amd64; Visual Studio)'
93 vmImage: 'vs2017-win2016'
95 - template: azure-pipelines/bash.yml
98 CMAKE_GENERATOR: Visual Studio 15 2017
99 CMAKE_OPTIONS: -A x64 -DMSVC_CRTDBG=ON -DDEPRECATE_HARD=ON
101 SKIP_NEGOTIATE_TESTS: true
103 - job: windows_vs_x86
104 displayName: 'Windows (x86; Visual Studio)'
106 vmImage: 'vs2017-win2016'
108 - template: azure-pipelines/bash.yml
110 environmentVariables:
111 CMAKE_GENERATOR: Visual Studio 15 2017
112 CMAKE_OPTIONS: -A Win32 -DMSVC_CRTDBG=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS
114 SKIP_NEGOTIATE_TESTS: true
116 - job: windows_mingw_amd64
117 displayName: 'Windows (amd64; MinGW)'
119 vmImage: 'vs2017-win2016'
121 - bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
124 TEMP: $(Agent.TempDirectory)
126 - template: azure-pipelines/bash.yml
128 environmentVariables:
129 BUILD_PATH: $(Agent.TempDirectory)\mingw64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
130 CMAKE_GENERATOR: MinGW Makefiles
131 CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
133 SKIP_NEGOTIATE_TESTS: true
135 - job: windows_mingw_x86
136 displayName: 'Windows (x86; MinGW)'
138 vmImage: 'vs2017-win2016'
140 - bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
142 workingDirectory: '$(Build.BinariesDirectory)'
144 TEMP: $(Agent.TempDirectory)
146 - template: azure-pipelines/bash.yml
148 environmentVariables:
149 BUILD_PATH: $(Agent.TempDirectory)\mingw32\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
150 CMAKE_GENERATOR: MinGW Makefiles
151 CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
153 SKIP_NEGOTIATE_TESTS: true
156 displayName: 'Generate Documentation'
158 vmImage: 'ubuntu-18.04'
161 cd $(Build.SourcesDirectory)/azure-pipelines/docker
162 docker build -t libgit2/docurium --build-arg BASE=ubuntu:trusty -f docurium .
163 displayName: 'Build Docker image'
165 git config user.name 'Documentation Generation'
166 git config user.email 'libgit2@users.noreply.github.com'
167 git branch gh-pages origin/gh-pages
168 docker run --rm -v $(Build.SourcesDirectory):/home/libgit2/source -w /home/libgit2/source libgit2/docurium:latest cm doc api.docurium
169 git checkout gh-pages
170 cp -R * '$(Build.BinariesDirectory)'
171 displayName: 'Generate Documentation'
172 - task: archivefiles@2
173 displayName: 'Archive Documentation'
175 rootFolderOrFile: '$(Build.BinariesDirectory)'
176 includeRootFolder: false
177 archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip'
178 - task: publishbuildartifacts@1
179 displayName: 'Upload Documentation Artifact'
181 pathToPublish: '$(Build.ArtifactStagingDirectory)'
185 echo 'machine github.com' > ~/.netrc
186 echo 'login $(GITHUB_USERNAME)' >> ~/.netrc
187 echo 'password $(GITHUB_PAT)' >> ~/.netrc
188 git push origin gh-pages
189 displayName: 'Publish Documentation'
190 condition: and(eq(variables['Build.Repository.Name'], 'libgit2/libgit2'), eq(variables['Build.Reason'], 'IndividualCI'))