1#*************************************************************************** 2# _ _ ____ _ 3# Project ___| | | | _ \| | 4# / __| | | | |_) | | 5# | (__| |_| | _ <| |___ 6# \___|\___/|_| \_\_____| 7# 8# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. 9# 10# This software is licensed as described in the file COPYING, which 11# you should have received as part of this distribution. The terms 12# are also available at https://curl.se/docs/copyright.html. 13# 14# You may opt to use, copy, modify, merge, publish, distribute and/or sell 15# copies of the Software, and permit persons to whom the Software is 16# furnished to do so, under the terms of the COPYING file. 17# 18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19# KIND, either express or implied. 20# 21########################################################################### 22# Starter pipeline 23# Start with a minimal pipeline that you can customize to build and deploy your code. 24# Add steps that build, run tests, deploy, and more: 25# https://aka.ms/yaml 26 27trigger: 28 branches: 29 include: 30 - 'master' 31 - '*/ci' 32 33pr: 34 branches: 35 include: 36 - 'master' 37 38stages: 39 40########################################## 41### Linux jobs first 42########################################## 43 44- stage: linux 45 dependsOn: [] 46 jobs: 47 - job: ubuntu 48 # define defaults to make sure variables are always expanded/replaced 49 variables: 50 install: '' 51 configure: '' 52 tests: '!433' 53 timeoutInMinutes: 60 54 pool: 55 vmImage: 'ubuntu-latest' 56 strategy: 57 matrix: 58 default: 59 name: default 60 install: jsonlint 61 configure: --enable-debug --with-openssl 62 disable_ipv6: 63 name: w/o IPv6 64 configure: --disable-ipv6 --with-openssl 65 disable_http_smtp_imap: 66 name: w/o HTTP/SMTP/IMAP 67 configure: --disable-http --disable-smtp --disable-imap --without-openssl 68 disable_thredres: 69 name: sync resolver 70 configure: --disable-threaded-resolver --with-openssl 71 https_only: 72 name: HTTPS only 73 configure: --disable-dict --disable-file --disable-ftp --disable-gopher --disable-imap --disable-ldap --disable-pop3 --disable-rtmp --disable-rtsp --disable-scp --disable-sftp --disable-smb --disable-smtp --disable-telnet --disable-tftp --with-openssl 74 torture: 75 name: torture 76 install: libnghttp2-dev 77 configure: --enable-debug --disable-shared --disable-threaded-resolver --with-openssl 78 tests: -n -t --shallow=40 !FTP 79 steps: 80 - script: sudo apt-get update && sudo apt-get install -y stunnel4 python3-impacket libzstd-dev libbrotli-dev $(install) 81 displayName: 'apt install' 82 83 - script: ./buildconf && ./configure --enable-warnings --enable-werror $(configure) 84 displayName: 'configure $(name)' 85 86 - script: make V=1 && cd tests && make V=1 87 displayName: 'compile' 88 89 - script: make test-nonflaky 90 displayName: 'test' 91 env: 92 AZURE_ACCESS_TOKEN: "$(System.AccessToken)" 93 TFLAGS: "-r $(tests)" 94 95########################################## 96### Windows jobs below 97########################################## 98 99- stage: windows 100 dependsOn: [] 101 variables: 102 agent.preferPowerShellOnContainers: true 103 jobs: 104 - job: windows 105 # define defaults to make sure variables are always expanded/replaced 106 variables: 107 container_img: '' 108 container_cmd: '' 109 configure: '' 110 tests: '' 111 timeoutInMinutes: 120 112 pool: 113 vmImage: 'windows-2019' 114 strategy: 115 matrix: 116 msys2_mingw32_debug_openssl: 117 name: 32-bit OpenSSL/libssh2 118 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019 119 container_cmd: C:\msys64\usr\bin\sh 120 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 121 configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --with-libssh2 --with-openssl 122 tests: ~571 ~612 ~1056 ~1299 !SCP 123 msys2_mingw64_debug_openssl: 124 name: 64-bit OpenSSL/libssh2 125 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019 126 container_cmd: C:\msys64\usr\bin\sh 127 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 128 configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --with-libssh2 --with-openssl 129 tests: ~571 ~612 ~1056 ~1299 !SCP 130 msys1_mingw_debug: 131 name: 32-bit (legacy) 132 container_img: mback2k/curl-docker-winbuildenv-msys1-mingw:ltsc2019 133 container_cmd: C:\MinGW\msys\1.0\bin\sh 134 configure: --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/mingw --enable-debug --without-ssl 135 tests: ~203 ~1056 ~1143 136 msys1_mingw32_debug: 137 name: 32-bit w/o zlib 138 container_img: mback2k/curl-docker-winbuildenv-msys1-mingw32:ltsc2019 139 container_cmd: C:\MinGW\msys\1.0\bin\sh 140 configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --without-zlib --without-ssl 141 tests: ~203 ~1056 ~1143 ~1299 142 msys1_mingw64_debug: 143 name: 64-bit w/o zlib 144 container_img: mback2k/curl-docker-winbuildenv-msys1-mingw64:ltsc2019 145 container_cmd: C:\MinGW\msys\1.0\bin\sh 146 configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --without-zlib --without-ssl 147 tests: ~203 ~1056 ~1143 ~1299 148 msys2_mingw32_debug_schannel: 149 name: 32-bit Schannel/SSPI/WinIDN/libssh2 150 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019 151 container_cmd: C:\msys64\usr\bin\sh 152 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 153 configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 154 tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP 155 msys2_mingw64_debug_schannel: 156 name: 64-bit Schannel/SSPI/WinIDN/libssh2 157 container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019 158 container_cmd: C:\msys64\usr\bin\sh 159 prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 160 configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 161 tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP 162 msys1_mingw_debug_schannel: 163 name: 32-bit Schannel/SSPI/WinIDN (legacy) 164 container_img: mback2k/curl-docker-winbuildenv-msys1-mingw:ltsc2019 165 container_cmd: C:\MinGW\msys\1.0\bin\sh 166 configure: --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/mingw --enable-debug --enable-sspi --with-schannel --with-winidn 167 tests: ~203 ~305 ~310 ~311 ~312 ~313 ~404 ~1056 ~1143 ~2034 ~2035 ~2037 ~2038 ~2041 ~2042 ~2048 ~3000 ~3001 168 msys1_mingw32_debug_schannel: 169 name: 32-bit Schannel/SSPI/WinIDN w/o zlib 170 container_img: mback2k/curl-docker-winbuildenv-msys1-mingw32:ltsc2019 171 container_cmd: C:\MinGW\msys\1.0\bin\sh 172 configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --without-zlib 173 tests: ~203 ~310 ~1056 ~1143 ~1299 ~2034 ~2037 ~2041 ~3000 ~3001 174 msys1_mingw64_debug_schannel: 175 name: 64-bit Schannel/SSPI/WinIDN w/o zlib 176 container_img: mback2k/curl-docker-winbuildenv-msys1-mingw64:ltsc2019 177 container_cmd: C:\MinGW\msys\1.0\bin\sh 178 configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --without-zlib 179 tests: ~203 ~310 ~1056 ~1143 ~1299 ~2034 ~2037 ~2041 ~3000 ~3001 180 container: 181 image: $(container_img) 182 env: 183 MSYS2_PATH_TYPE: inherit 184 steps: 185 - script: $(container_cmd) -l -c "cd $(echo '%cd%') && $(prepare)" 186 displayName: 'prepare' 187 condition: variables.prepare 188 189 - script: $(container_cmd) -l -c "cd $(echo '%cd%') && ./buildconf && ./configure $(configure)" 190 displayName: 'configure $(name)' 191 192 - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 && cd tests && make V=1" 193 displayName: 'compile' 194 195 - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 install && PATH=/usr/bin:/bin find . -type f -path '*/.libs/*.exe' -print -execdir mv -t .. {} \;" 196 displayName: 'install' 197 198 - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 test-nonflaky" 199 displayName: 'test' 200 env: 201 AZURE_ACCESS_TOKEN: "$(System.AccessToken)" 202 TFLAGS: "-vc /usr/bin/curl.exe -r -rm $(tests)" 203