Merge bdb6a46134 into b4834a7d6d
This commit is contained in:
commit
72764f59df
24
.github/workflows/macos.yml
vendored
24
.github/workflows/macos.yml
vendored
@ -139,6 +139,7 @@ jobs:
|
|||||||
chkprefill: _chkprefill
|
chkprefill: _chkprefill
|
||||||
- name: 'quictls +static libssh +examples'
|
- name: 'quictls +static libssh +examples'
|
||||||
install: quictls libssh
|
install: quictls libssh
|
||||||
|
install_steps: pytest
|
||||||
generate: -DOPENSSL_ROOT_DIR=$(brew --prefix quictls) -DBUILD_STATIC_LIBS=ON -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON
|
generate: -DOPENSSL_ROOT_DIR=$(brew --prefix quictls) -DBUILD_STATIC_LIBS=ON -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON
|
||||||
- name: 'SecureTransport debug'
|
- name: 'SecureTransport debug'
|
||||||
generate: -DCURL_USE_SECTRANSP=ON -DENABLE_DEBUG=ON
|
generate: -DCURL_USE_SECTRANSP=ON -DENABLE_DEBUG=ON
|
||||||
@ -186,6 +187,7 @@ jobs:
|
|||||||
echo ${{ matrix.build.generate && 'ninja' || 'automake libtool' }} \
|
echo ${{ matrix.build.generate && 'ninja' || 'automake libtool' }} \
|
||||||
pkgconf libpsl libssh2 \
|
pkgconf libpsl libssh2 \
|
||||||
${{ !matrix.build.clang-tidy && 'libnghttp2 stunnel' || '' }} \
|
${{ !matrix.build.clang-tidy && 'libnghttp2 stunnel' || '' }} \
|
||||||
|
${{ contains(matrix.build.install_steps, 'pytest') && 'caddy httpd vsftpd' || '' }} \
|
||||||
${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
|
${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
|
||||||
while [[ $? == 0 ]]; do for i in 1 2 3; do brew update && brew bundle install --no-lock --file /tmp/Brewfile && break 2 || { echo Error: wait to try again; sleep 10; } done; false Too many retries; done
|
while [[ $? == 0 ]]; do for i in 1 2 3; do brew update && brew bundle install --no-lock --file /tmp/Brewfile && break 2 || { echo Error: wait to try again; sleep 10; } done; false Too many retries; done
|
||||||
|
|
||||||
@ -270,6 +272,9 @@ jobs:
|
|||||||
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
grep -F '#define' bld/lib/curl_config.h | sort || true
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
|
- name: 'test configs'
|
||||||
|
run: grep -H -v '^#' bld/tests/config bld/tests/http/config.ini || true
|
||||||
|
|
||||||
- name: 'build-cert'
|
- name: 'build-cert'
|
||||||
if: contains(matrix.build.generate, '-DCURL_USE_SECTRANSP=ON') || contains(matrix.build.configure, '--with-secure-transport')
|
if: contains(matrix.build.generate, '-DCURL_USE_SECTRANSP=ON') || contains(matrix.build.configure, '--with-secure-transport')
|
||||||
run: |
|
run: |
|
||||||
@ -341,6 +346,25 @@ jobs:
|
|||||||
make -C bld V=1 ${{ matrix.build.torture && 'test-torture' || 'test-ci' }}
|
make -C bld V=1 ${{ matrix.build.torture && 'test-torture' || 'test-ci' }}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: 'install pytest prereqs'
|
||||||
|
if: ${{ !matrix.build.clang-tidy && contains(matrix.build.install_steps, 'pytest') }}
|
||||||
|
run: |
|
||||||
|
source $HOME/venv/bin/activate
|
||||||
|
python3 -m pip install -r tests/http/requirements.txt
|
||||||
|
|
||||||
|
- name: 'run pytest'
|
||||||
|
if: ${{ !matrix.build.clang-tidy && contains(matrix.build.install_steps, 'pytest') }}
|
||||||
|
env:
|
||||||
|
CURL_CI: github
|
||||||
|
PYTEST_ADDOPTS: '--color=yes'
|
||||||
|
run: |
|
||||||
|
source $HOME/venv/bin/activate
|
||||||
|
if [ -n '${{ matrix.build.generate }}' ]; then
|
||||||
|
cmake --build bld --verbose --target curl-pytest-ci
|
||||||
|
else
|
||||||
|
make -C bld V=1 pytest-ci
|
||||||
|
fi
|
||||||
|
|
||||||
- name: 'build examples'
|
- name: 'build examples'
|
||||||
if: ${{ contains(matrix.build.name, '+examples') }}
|
if: ${{ contains(matrix.build.name, '+examples') }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user