9 - job: linux_amd64_xenial_gcc_openssl
10 displayName: 'Linux (amd64; Xenial; GCC; OpenSSL)'
12 vmImage: 'Ubuntu 16.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 16.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 16.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 16.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 }}
76 vmImage: 'macOS 10.13'
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)'
94 - template: azure-pipelines/bash.yml
97 CMAKE_GENERATOR: Visual Studio 12 2013 Win64
98 CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -DDEPRECATE_HARD=ON
100 SKIP_NEGOTIATE_TESTS: true
102 - job: windows_vs_x86
103 displayName: 'Windows (x86; Visual Studio)'
106 - template: azure-pipelines/bash.yml
108 environmentVariables:
109 CMAKE_GENERATOR: Visual Studio 12 2013
110 CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS
112 SKIP_NEGOTIATE_TESTS: true
114 - job: windows_mingw_amd64
115 displayName: 'Windows (amd64; MinGW)'
118 - bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
121 TEMP: $(Agent.TempDirectory)
123 - template: azure-pipelines/bash.yml
125 environmentVariables:
126 BUILD_PATH: $(Agent.TempDirectory)\mingw64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
127 CMAKE_GENERATOR: MinGW Makefiles
128 CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
130 SKIP_NEGOTIATE_TESTS: true
132 - job: windows_mingw_x86
133 displayName: 'Windows (x86; MinGW)'
136 - bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
138 workingDirectory: '$(Build.BinariesDirectory)'
140 TEMP: $(Agent.TempDirectory)
142 - template: azure-pipelines/bash.yml
144 environmentVariables:
145 BUILD_PATH: $(Agent.TempDirectory)\mingw32\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
146 CMAKE_GENERATOR: MinGW Makefiles
147 CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
149 SKIP_NEGOTIATE_TESTS: true
152 displayName: 'Generate Documentation'
154 vmImage: 'Ubuntu 16.04'
157 cd $(Build.SourcesDirectory)/azure-pipelines/docker
158 docker build -t libgit2/docurium --build-arg BASE=ubuntu:trusty -f docurium .
159 displayName: 'Build Docker image'
161 git config user.name 'Documentation Generation'
162 git config user.email 'libgit2@users.noreply.github.com'
163 git branch gh-pages origin/gh-pages
164 docker run --rm -v $(Build.SourcesDirectory):/home/libgit2/source -w /home/libgit2/source libgit2/docurium:latest cm doc api.docurium
165 git checkout gh-pages
166 cp -R * '$(Build.BinariesDirectory)'
167 displayName: 'Generate Documentation'
168 - task: archivefiles@2
169 displayName: 'Archive Documentation'
171 rootFolderOrFile: '$(Build.BinariesDirectory)'
172 includeRootFolder: false
173 archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip'
174 - task: publishbuildartifacts@1
175 displayName: 'Upload Documentation Artifact'
177 pathToPublish: '$(Build.ArtifactStagingDirectory)'
181 echo 'machine github.com' > ~/.netrc
182 echo 'login $(GITHUB_USERNAME)' >> ~/.netrc
183 echo 'password $(GITHUB_PAT)' >> ~/.netrc
184 git push origin gh-pages
185 displayName: 'Publish Documentation'
186 condition: and(eq(variables['Build.Repository.Name'], 'libgit2/libgit2'), eq(variables['Build.Reason'], 'IndividualCI'))