Merge branch 'github-ci-test-webrequest'
Run wxWebRequest tests in the GitHub CI builds. See https://github.com/wxWidgets/wxWidgets/pull/2197
This commit is contained in:
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@@ -5,9 +5,15 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths:
|
||||||
|
- '!docs'
|
||||||
|
- '!interface'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths:
|
||||||
|
- '!docs'
|
||||||
|
- '!interface'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -19,7 +25,7 @@ jobs:
|
|||||||
- name: wxGTK Ubuntu 20.04 with ASAN
|
- name: wxGTK Ubuntu 20.04 with ASAN
|
||||||
runner: ubuntu-20.04
|
runner: ubuntu-20.04
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
configure_flags: --disable-compat30 --disable-sys-libs
|
configure_flags: --disable-compat30 --disable-sys-libs --with-libcurl
|
||||||
gtk_version: 3
|
gtk_version: 3
|
||||||
skip_samples: true
|
skip_samples: true
|
||||||
use_asan: true
|
use_asan: true
|
||||||
@@ -119,13 +125,27 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
make -k -C tests $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
make -k -C tests $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
||||||
|
|
||||||
|
- name: Launching httpbin
|
||||||
|
if: matrix.skip_testing != true
|
||||||
|
run: |
|
||||||
|
pip install httpbin
|
||||||
|
python -m httpbin.core 2>&1 >httpbin.log &
|
||||||
|
echo 'WX_TEST_WEBREQUEST_URL=http://localhost:5000' >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Testing
|
- name: Testing
|
||||||
if: matrix.skip_testing != true
|
if: matrix.skip_testing != true
|
||||||
run: |
|
run: |
|
||||||
echo 'Testing...'
|
echo 'Testing...'
|
||||||
pushd tests
|
pushd tests
|
||||||
./test
|
./test || rc=$?
|
||||||
popd
|
popd
|
||||||
|
if [ -n "$rc" ]; then
|
||||||
|
echo '*** Tests failed, contents of httpbin.log follows: ***'
|
||||||
|
echo '-----------------------------------------------------------'
|
||||||
|
cat httpbin.log
|
||||||
|
echo '-----------------------------------------------------------'
|
||||||
|
exit $rc
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Testing GUI using Xvfb
|
- name: Testing GUI using Xvfb
|
||||||
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.use_xvfb
|
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.use_xvfb
|
||||||
|
@@ -37,7 +37,7 @@ case $(uname -s) in
|
|||||||
libglu1-mesa-dev"
|
libglu1-mesa-dev"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
extra_deps="$extra_deps libsecret-1-dev libnotify-dev"
|
extra_deps="$extra_deps libcurl4-openssl-dev libsecret-1-dev libnotify-dev"
|
||||||
for pkg in $extra_deps; do
|
for pkg in $extra_deps; do
|
||||||
if $(apt-cache pkgnames | grep -q $pkg) ; then
|
if $(apt-cache pkgnames | grep -q $pkg) ; then
|
||||||
pkg_install="$pkg_install $pkg"
|
pkg_install="$pkg_install $pkg"
|
||||||
|
Reference in New Issue
Block a user