From 12d51b68fcfe3170dc21aef531c7e2d1b5d00baf Mon Sep 17 00:00:00 2001 From: Hamed Masafi Date: Sat, 1 Aug 2020 10:39:34 +0430 Subject: [PATCH] wip: auto tests --- .github/workflows/qt.yml | 9 +++++++-- tests/auto/auto.pro | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qt.yml b/.github/workflows/qt.yml index 28a38c0..4d101c5 100644 --- a/.github/workflows/qt.yml +++ b/.github/workflows/qt.yml @@ -59,11 +59,16 @@ jobs: run: | qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} "QT_TOOL_PATH=${{steps.qt.outputs.qtdir}}/Tools" nut.pro ${{steps.qt.outputs.make}} qmake_all - - name: make lib + - name: make module run: | ${{steps.qt.outputs.make}} ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install - - name: upload lib to releases + - name: make tests + if: steps.qt.outputs.tests == 'true' && !contains(matrix.platform, 'mingw') + run: | + ${{steps.qt.outputs.make}} all + ${{steps.qt.outputs.make}} ${{steps.qt.outputs.testflags}} run-tests + - name: upload module to releases uses: Skycoder42/action-upload-release@master if: startsWith(github.ref, 'refs/tags/') with: diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 1a7a38e..1d0d3e8 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -11,3 +11,6 @@ SUBDIRS += \ tst_json \ tst_datetime +cmake.CONFIG += no_run-tests_target +prepareRecursiveTarget(run-tests) +QMAKE_EXTRA_TARGETS += run-tests \ No newline at end of file