2020-03-23 09:44:29 -04:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2021-03-22 11:07:36 -04:00
|
|
|
# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2020-03-23 09:44:29 -04:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 08:02:01 -05:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 09:44:29 -04:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
###########################################################################
|
2019-12-02 09:37:09 -05:00
|
|
|
# Starter pipeline
|
|
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
|
|
# Add steps that build, run tests, deploy, and more:
|
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
|
|
|
trigger:
|
2020-03-15 18:57:04 -04:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- 'master'
|
|
|
|
- '*/ci'
|
|
|
|
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- 'master'
|
2020-02-22 08:20:57 -05:00
|
|
|
|
|
|
|
stages:
|
2019-12-02 09:37:09 -05:00
|
|
|
|
2019-12-10 06:47:30 -05:00
|
|
|
##########################################
|
|
|
|
### Linux jobs first
|
|
|
|
##########################################
|
|
|
|
|
2020-02-22 08:20:57 -05:00
|
|
|
- stage: linux
|
|
|
|
dependsOn: []
|
|
|
|
jobs:
|
2020-05-28 16:11:32 -04:00
|
|
|
- job: ubuntu
|
|
|
|
# define defaults to make sure variables are always expanded/replaced
|
|
|
|
variables:
|
|
|
|
install: ''
|
|
|
|
configure: ''
|
2021-03-22 11:07:36 -04:00
|
|
|
tests: '!433'
|
2020-05-28 16:11:32 -04:00
|
|
|
timeoutInMinutes: 60
|
2019-12-09 04:08:46 -05:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
2020-05-28 16:11:32 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
default:
|
|
|
|
name: default
|
2021-04-16 17:53:22 -04:00
|
|
|
install: jsonlint
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --enable-debug --with-openssl
|
2020-05-28 16:11:32 -04:00
|
|
|
disable_ipv6:
|
|
|
|
name: w/o IPv6
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --disable-ipv6 --with-openssl
|
2020-05-28 16:11:32 -04:00
|
|
|
disable_http_smtp_imap:
|
|
|
|
name: w/o HTTP/SMTP/IMAP
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --disable-http --disable-smtp --disable-imap --without-openssl
|
2020-05-28 16:11:32 -04:00
|
|
|
disable_thredres:
|
|
|
|
name: sync resolver
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --disable-threaded-resolver --with-openssl
|
|
|
|
https_only:
|
|
|
|
name: HTTPS only
|
|
|
|
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
|
2020-05-28 16:11:32 -04:00
|
|
|
torture:
|
|
|
|
name: torture
|
|
|
|
install: libnghttp2-dev
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --enable-debug --disable-shared --disable-threaded-resolver --with-openssl
|
2020-08-05 09:07:30 -04:00
|
|
|
tests: -n -t --shallow=40 !FTP
|
2020-05-28 16:11:32 -04:00
|
|
|
steps:
|
2021-03-01 15:37:25 -05:00
|
|
|
- script: sudo apt-get update && sudo apt-get install -y stunnel4 python3-impacket libzstd-dev libbrotli-dev $(install)
|
2020-03-14 18:49:03 -04:00
|
|
|
displayName: 'apt install'
|
|
|
|
|
2020-07-21 13:04:42 -04:00
|
|
|
- script: ./buildconf && ./configure --enable-warnings --enable-werror $(configure)
|
2020-05-28 16:11:32 -04:00
|
|
|
displayName: 'configure $(name)'
|
2019-12-03 17:21:09 -05:00
|
|
|
|
2021-05-15 14:55:42 -04:00
|
|
|
- script: make V=1 && cd tests && make V=1
|
|
|
|
displayName: 'compile'
|
2019-12-03 17:21:09 -05:00
|
|
|
|
|
|
|
- script: make test-nonflaky
|
|
|
|
displayName: 'test'
|
2020-02-22 14:09:29 -05:00
|
|
|
env:
|
|
|
|
AZURE_ACCESS_TOKEN: "$(System.AccessToken)"
|
2020-08-05 09:07:30 -04:00
|
|
|
TFLAGS: "-r $(tests)"
|
2019-12-10 06:47:46 -05:00
|
|
|
|
2020-02-22 08:20:57 -05:00
|
|
|
##########################################
|
|
|
|
### Windows jobs below
|
|
|
|
##########################################
|
|
|
|
|
|
|
|
- stage: windows
|
|
|
|
dependsOn: []
|
2020-03-20 13:18:04 -04:00
|
|
|
variables:
|
|
|
|
agent.preferPowerShellOnContainers: true
|
2020-02-22 08:20:57 -05:00
|
|
|
jobs:
|
2020-05-28 16:11:32 -04:00
|
|
|
- job: windows
|
|
|
|
# define defaults to make sure variables are always expanded/replaced
|
|
|
|
variables:
|
|
|
|
container_img: ''
|
|
|
|
container_cmd: ''
|
|
|
|
configure: ''
|
2020-08-05 09:07:30 -04:00
|
|
|
tests: ''
|
2020-07-28 04:00:38 -04:00
|
|
|
timeoutInMinutes: 120
|
2020-02-22 08:20:57 -05:00
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
2020-05-28 16:11:32 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
msys2_mingw32_debug_openssl:
|
2021-05-15 14:55:42 -04:00
|
|
|
name: 32-bit OpenSSL/libssh2
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019
|
|
|
|
container_cmd: C:\msys64\usr\bin\sh
|
2020-07-24 16:59:17 -04:00
|
|
|
prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --with-libssh2 --with-openssl
|
2020-09-15 07:06:39 -04:00
|
|
|
tests: ~571 ~612 ~1056 ~1299 !SCP
|
2020-05-28 16:11:32 -04:00
|
|
|
msys2_mingw64_debug_openssl:
|
2021-05-15 14:55:42 -04:00
|
|
|
name: 64-bit OpenSSL/libssh2
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019
|
|
|
|
container_cmd: C:\msys64\usr\bin\sh
|
2020-07-24 16:59:17 -04:00
|
|
|
prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --with-libssh2 --with-openssl
|
2020-09-15 07:06:39 -04:00
|
|
|
tests: ~571 ~612 ~1056 ~1299 !SCP
|
2021-04-15 03:21:40 -04:00
|
|
|
msys1_mingw_debug:
|
|
|
|
name: 32-bit (legacy)
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys1-mingw:ltsc2019
|
|
|
|
container_cmd: C:\MinGW\msys\1.0\bin\sh
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/mingw --enable-debug --without-ssl
|
2020-08-05 09:07:30 -04:00
|
|
|
tests: ~203 ~1056 ~1143
|
2021-04-15 03:21:40 -04:00
|
|
|
msys1_mingw32_debug:
|
|
|
|
name: 32-bit w/o zlib
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys1-mingw32:ltsc2019
|
|
|
|
container_cmd: C:\MinGW\msys\1.0\bin\sh
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --without-zlib --without-ssl
|
2020-08-05 09:07:30 -04:00
|
|
|
tests: ~203 ~1056 ~1143 ~1299
|
2021-04-15 03:21:40 -04:00
|
|
|
msys1_mingw64_debug:
|
|
|
|
name: 64-bit w/o zlib
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys1-mingw64:ltsc2019
|
|
|
|
container_cmd: C:\MinGW\msys\1.0\bin\sh
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --without-zlib --without-ssl
|
2020-08-05 09:07:30 -04:00
|
|
|
tests: ~203 ~1056 ~1143 ~1299
|
2020-05-28 16:11:32 -04:00
|
|
|
msys2_mingw32_debug_schannel:
|
2021-05-15 14:55:42 -04:00
|
|
|
name: 32-bit Schannel/SSPI/WinIDN/libssh2
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys2-mingw32:ltsc2019
|
|
|
|
container_cmd: C:\msys64\usr\bin\sh
|
2020-07-24 16:59:17 -04:00
|
|
|
prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
|
2020-09-15 07:06:39 -04:00
|
|
|
tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP
|
2020-05-28 16:11:32 -04:00
|
|
|
msys2_mingw64_debug_schannel:
|
2021-05-15 14:55:42 -04:00
|
|
|
name: 64-bit Schannel/SSPI/WinIDN/libssh2
|
2020-05-28 16:11:32 -04:00
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys2-mingw64:ltsc2019
|
|
|
|
container_cmd: C:\msys64\usr\bin\sh
|
2020-07-24 16:59:17 -04:00
|
|
|
prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
|
2021-04-15 03:21:40 -04:00
|
|
|
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
|
2020-09-15 07:06:39 -04:00
|
|
|
tests: ~165 ~310 ~571 ~612 ~1056 ~1299 ~1448 ~2034 ~2037 ~2041 ~2046 ~2047 ~3000 ~3001 !SCP
|
2020-05-28 16:11:32 -04:00
|
|
|
msys1_mingw_debug_schannel:
|
|
|
|
name: 32-bit Schannel/SSPI/WinIDN (legacy)
|
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys1-mingw:ltsc2019
|
|
|
|
container_cmd: C:\MinGW\msys\1.0\bin\sh
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/mingw --enable-debug --enable-sspi --with-schannel --with-winidn
|
2020-08-29 05:09:32 -04:00
|
|
|
tests: ~203 ~305 ~310 ~311 ~312 ~313 ~404 ~1056 ~1143 ~2034 ~2035 ~2037 ~2038 ~2041 ~2042 ~2048 ~3000 ~3001
|
2020-05-28 16:11:32 -04:00
|
|
|
msys1_mingw32_debug_schannel:
|
|
|
|
name: 32-bit Schannel/SSPI/WinIDN w/o zlib
|
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys1-mingw32:ltsc2019
|
|
|
|
container_cmd: C:\MinGW\msys\1.0\bin\sh
|
2021-04-15 03:21:40 -04:00
|
|
|
configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --without-zlib
|
2020-08-29 05:09:32 -04:00
|
|
|
tests: ~203 ~310 ~1056 ~1143 ~1299 ~2034 ~2037 ~2041 ~3000 ~3001
|
2020-05-28 16:11:32 -04:00
|
|
|
msys1_mingw64_debug_schannel:
|
|
|
|
name: 64-bit Schannel/SSPI/WinIDN w/o zlib
|
|
|
|
container_img: mback2k/curl-docker-winbuildenv-msys1-mingw64:ltsc2019
|
|
|
|
container_cmd: C:\MinGW\msys\1.0\bin\sh
|
2021-04-15 03:21:40 -04:00
|
|
|
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
|
2020-08-29 05:09:32 -04:00
|
|
|
tests: ~203 ~310 ~1056 ~1143 ~1299 ~2034 ~2037 ~2041 ~3000 ~3001
|
2020-02-22 08:20:57 -05:00
|
|
|
container:
|
2020-05-28 16:11:32 -04:00
|
|
|
image: $(container_img)
|
2020-02-22 14:09:29 -05:00
|
|
|
env:
|
2020-02-22 08:20:57 -05:00
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
steps:
|
2020-07-24 16:59:17 -04:00
|
|
|
- script: $(container_cmd) -l -c "cd $(echo '%cd%') && $(prepare)"
|
|
|
|
displayName: 'prepare'
|
|
|
|
condition: variables.prepare
|
|
|
|
|
2020-05-28 16:11:32 -04:00
|
|
|
- script: $(container_cmd) -l -c "cd $(echo '%cd%') && ./buildconf && ./configure $(configure)"
|
|
|
|
displayName: 'configure $(name)'
|
2020-02-22 08:20:57 -05:00
|
|
|
|
2021-05-15 14:55:42 -04:00
|
|
|
- script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 && cd tests && make V=1"
|
|
|
|
displayName: 'compile'
|
2020-02-22 08:20:57 -05:00
|
|
|
|
2021-05-15 14:55:42 -04:00
|
|
|
- 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 .. {} \;"
|
2020-10-12 00:23:25 -04:00
|
|
|
displayName: 'install'
|
|
|
|
|
2021-05-15 14:55:42 -04:00
|
|
|
- script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 test-nonflaky"
|
2020-02-22 08:20:57 -05:00
|
|
|
displayName: 'test'
|
2020-02-22 14:09:29 -05:00
|
|
|
env:
|
|
|
|
AZURE_ACCESS_TOKEN: "$(System.AccessToken)"
|
2021-02-28 16:06:17 -05:00
|
|
|
TFLAGS: "-vc /usr/bin/curl.exe -r -rm $(tests)"
|