]>
Commit | Line | Data |
---|---|---|
6c7cee42 RD |
1 | resources: |
2 | - repo: self | |
3 | ||
4 | trigger: | |
5 | - master | |
6 | - maint/* | |
7 | ||
8 | jobs: | |
0c9c969a UG |
9 | - job: linux_amd64_xenial_gcc_openssl |
10 | displayName: 'Linux (amd64; Xenial; GCC; OpenSSL)' | |
6c7cee42 RD |
11 | pool: |
12 | vmImage: 'Ubuntu 16.04' | |
13 | steps: | |
ac3d33df | 14 | - template: azure-pipelines/docker.yml |
6c7cee42 | 15 | parameters: |
0c9c969a UG |
16 | docker: |
17 | image: xenial | |
18 | base: ubuntu:xenial | |
6c7cee42 RD |
19 | environmentVariables: | |
20 | CC=gcc | |
0c9c969a UG |
21 | CMAKE_GENERATOR=Ninja |
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 }} | |
6c7cee42 | 24 | |
0c9c969a UG |
25 | - job: linux_amd64_xenial_gcc_mbedtls |
26 | displayName: 'Linux (amd64; Xenial; GCC; mbedTLS)' | |
6c7cee42 RD |
27 | pool: |
28 | vmImage: 'Ubuntu 16.04' | |
29 | steps: | |
ac3d33df | 30 | - template: azure-pipelines/docker.yml |
6c7cee42 | 31 | parameters: |
0c9c969a UG |
32 | docker: |
33 | image: xenial | |
34 | base: ubuntu:xenial | |
ac3d33df JK |
35 | environmentVariables: | |
36 | CC=gcc | |
0c9c969a UG |
37 | CMAKE_GENERATOR=Ninja |
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 }} | |
ac3d33df | 40 | |
0c9c969a UG |
41 | - job: linux_amd64_xenial_clang_openssl |
42 | displayName: 'Linux (amd64; Xenial; Clang; OpenSSL)' | |
ac3d33df JK |
43 | pool: |
44 | vmImage: 'Ubuntu 16.04' | |
45 | steps: | |
46 | - template: azure-pipelines/docker.yml | |
47 | parameters: | |
0c9c969a UG |
48 | docker: |
49 | image: xenial | |
50 | base: ubuntu:xenial | |
ac3d33df JK |
51 | environmentVariables: | |
52 | CC=clang | |
0c9c969a UG |
53 | CMAKE_GENERATOR=Ninja |
54 | CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON | |
55 | GITTEST_NEGOTIATE_PASSWORD=${{ variables.GITTEST_NEGOTIATE_PASSWORD }} | |
ac3d33df | 56 | |
0c9c969a UG |
57 | - job: linux_amd64_xenial_clang_mbedtls |
58 | displayName: 'Linux (amd64; Xenial; Clang; mbedTLS)' | |
ac3d33df JK |
59 | pool: |
60 | vmImage: 'Ubuntu 16.04' | |
61 | steps: | |
62 | - template: azure-pipelines/docker.yml | |
63 | parameters: | |
0c9c969a UG |
64 | docker: |
65 | image: xenial | |
66 | base: ubuntu:xenial | |
6c7cee42 RD |
67 | environmentVariables: | |
68 | CC=clang | |
0c9c969a UG |
69 | CMAKE_GENERATOR=Ninja |
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 }} | |
6c7cee42 RD |
72 | |
73 | - job: macos | |
74 | displayName: 'macOS' | |
75 | pool: | |
76 | vmImage: 'macOS 10.13' | |
77 | steps: | |
0c9c969a | 78 | - bash: . '$(Build.SourcesDirectory)/azure-pipelines/setup-osx.sh' |
6c7cee42 | 79 | displayName: Setup |
ac3d33df | 80 | - template: azure-pipelines/bash.yml |
6c7cee42 RD |
81 | parameters: |
82 | environmentVariables: | |
83 | TMPDIR: $(Agent.TempDirectory) | |
84 | PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig | |
0c9c969a UG |
85 | CMAKE_GENERATOR: Ninja |
86 | CMAKE_OPTIONS: -DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON | |
ac3d33df | 87 | SKIP_SSH_TESTS: true |
0c9c969a | 88 | GITTEST_NEGOTIATE_PASSWORD: ${{ variables.GITTEST_NEGOTIATE_PASSWORD }} |
6c7cee42 RD |
89 | |
90 | - job: windows_vs_amd64 | |
ac3d33df | 91 | displayName: 'Windows (amd64; Visual Studio)' |
6c7cee42 RD |
92 | pool: Hosted |
93 | steps: | |
0c9c969a | 94 | - template: azure-pipelines/bash.yml |
6c7cee42 RD |
95 | parameters: |
96 | environmentVariables: | |
0c9c969a UG |
97 | CMAKE_GENERATOR: Visual Studio 12 2013 Win64 |
98 | CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -DDEPRECATE_HARD=ON | |
99 | SKIP_SSH_TESTS: true | |
100 | SKIP_NEGOTIATE_TESTS: true | |
6c7cee42 RD |
101 | |
102 | - job: windows_vs_x86 | |
ac3d33df | 103 | displayName: 'Windows (x86; Visual Studio)' |
6c7cee42 RD |
104 | pool: Hosted |
105 | steps: | |
0c9c969a | 106 | - template: azure-pipelines/bash.yml |
6c7cee42 RD |
107 | parameters: |
108 | environmentVariables: | |
0c9c969a UG |
109 | CMAKE_GENERATOR: Visual Studio 12 2013 |
110 | CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS | |
111 | SKIP_SSH_TESTS: true | |
112 | SKIP_NEGOTIATE_TESTS: true | |
6c7cee42 RD |
113 | |
114 | - job: windows_mingw_amd64 | |
ac3d33df | 115 | displayName: 'Windows (amd64; MinGW)' |
6c7cee42 RD |
116 | pool: Hosted |
117 | steps: | |
0c9c969a | 118 | - bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh' |
6c7cee42 RD |
119 | displayName: Setup |
120 | env: | |
121 | TEMP: $(Agent.TempDirectory) | |
122 | ARCH: amd64 | |
0c9c969a | 123 | - template: azure-pipelines/bash.yml |
6c7cee42 RD |
124 | parameters: |
125 | environmentVariables: | |
0c9c969a UG |
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 | |
129 | SKIP_SSH_TESTS: true | |
130 | SKIP_NEGOTIATE_TESTS: true | |
6c7cee42 RD |
131 | |
132 | - job: windows_mingw_x86 | |
ac3d33df | 133 | displayName: 'Windows (x86; MinGW)' |
6c7cee42 RD |
134 | pool: Hosted |
135 | steps: | |
0c9c969a | 136 | - bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh' |
6c7cee42 RD |
137 | displayName: Setup |
138 | workingDirectory: '$(Build.BinariesDirectory)' | |
139 | env: | |
140 | TEMP: $(Agent.TempDirectory) | |
141 | ARCH: x86 | |
0c9c969a | 142 | - template: azure-pipelines/bash.yml |
6c7cee42 RD |
143 | parameters: |
144 | environmentVariables: | |
0c9c969a UG |
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 | |
148 | SKIP_SSH_TESTS: true | |
149 | SKIP_NEGOTIATE_TESTS: true | |
ac3d33df JK |
150 | |
151 | - job: documentation | |
152 | displayName: 'Generate Documentation' | |
153 | pool: | |
154 | vmImage: 'Ubuntu 16.04' | |
155 | steps: | |
0c9c969a UG |
156 | - script: | |
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' | |
ac3d33df JK |
160 | - script: | |
161 | git config user.name 'Documentation Generation' | |
0c9c969a UG |
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 | |
ac3d33df JK |
165 | git checkout gh-pages |
166 | cp -R * '$(Build.BinariesDirectory)' | |
0c9c969a | 167 | displayName: 'Generate Documentation' |
ac3d33df JK |
168 | - task: archivefiles@2 |
169 | displayName: 'Archive Documentation' | |
170 | inputs: | |
171 | rootFolderOrFile: '$(Build.BinariesDirectory)' | |
172 | includeRootFolder: false | |
173 | archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip' | |
174 | - task: publishbuildartifacts@1 | |
0c9c969a | 175 | displayName: 'Upload Documentation Artifact' |
ac3d33df JK |
176 | inputs: |
177 | pathToPublish: '$(Build.ArtifactStagingDirectory)' | |
178 | artifactName: 'docs' | |
0c9c969a UG |
179 | - script: | |
180 | git remote -v | |
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')) |