mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
GitHub Actions: run the tests on Mac and Ubuntu 18.04/Qt 5.9 desktop
We lost running the tests when migrating to GitHub Actions... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c2ccbe1f63
commit
f788311b29
2 changed files with 21 additions and 1 deletions
7
.github/workflows/linux-bionic-5.9.yml
vendored
7
.github/workflows/linux-bionic-5.9.yml
vendored
|
@ -27,9 +27,14 @@ jobs:
|
|||
qml-module-qtquick2 qt5-default qt5-qmake qtchooser qtconnectivity5-dev \
|
||||
qtdeclarative5-dev qtdeclarative5-private-dev qtlocation5-dev \
|
||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||
qtquickcontrols2-5-dev
|
||||
qtquickcontrols2-5-dev xvfb
|
||||
|
||||
- name: run build
|
||||
run: |
|
||||
cd ..
|
||||
bash -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||
# and now run the tests - with Qt 5.9 we can only run the desktop flavor
|
||||
echo "------------------------------------"
|
||||
echo "run tests"
|
||||
cd subsurface/build
|
||||
xvfb-run --auto-servernum make check
|
||||
|
|
15
.github/workflows/mac.yml
vendored
15
.github/workflows/mac.yml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
|||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/..
|
||||
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||
export PATH=$QT_ROOT/bin:$PATH
|
||||
export CMAKE_PREFIX_PATH=$QT_ROOT/lib/cmake
|
||||
DIR=$(pwd)
|
||||
|
@ -31,6 +32,13 @@ jobs:
|
|||
# first build Subsurface-mobile to ensure this didn't get broken
|
||||
bash -e -x ./subsurface/scripts/build.sh -mobile
|
||||
|
||||
# run tests
|
||||
echo "------------------------------------"
|
||||
echo "run tests for mobile build"
|
||||
pushd ${GITHUB_WORKSPACE}/build-mobile/tests
|
||||
make check
|
||||
popd
|
||||
|
||||
# now Subsurface with WebKit
|
||||
bash -e -x ./subsurface/scripts/build.sh -desktop -build-with-webkit -release
|
||||
|
||||
|
@ -39,6 +47,13 @@ jobs:
|
|||
# build export-html to make sure that didn't get broken
|
||||
make export-html
|
||||
|
||||
# run the tests
|
||||
echo "------------------------------------"
|
||||
echo "run tests"
|
||||
pushd ${GITHUB_WORKSPACE}/build/tests
|
||||
make check
|
||||
popd
|
||||
|
||||
- name: package Subsurface
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/build
|
||||
|
|
Loading…
Add table
Reference in a new issue