Run model unit tests in virtual X fb.
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ before_install:
|
|||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -y install qt59base qt59svg qt59tools zlib1g-dev
|
- sudo apt-get -y install qt59base qt59svg qt59tools zlib1g-dev xvfb
|
||||||
- source /opt/qt5*/bin/qt5*-env.sh
|
- source /opt/qt5*/bin/qt5*-env.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@@ -16,7 +16,7 @@ script:
|
|||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr
|
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
- make -j4
|
- make -j4
|
||||||
- make test
|
- xvfb-run make test
|
||||||
- sudo make DESTDIR=appdir install ; sudo chown -R $USER appdir ; find appdir/
|
- sudo make DESTDIR=appdir install ; sudo chown -R $USER appdir ; find appdir/
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ target_include_directories (Model
|
|||||||
target_link_libraries (Model
|
target_link_libraries (Model
|
||||||
Barcode
|
Barcode
|
||||||
Merge
|
Merge
|
||||||
Qt5::Widgets
|
Qt5::Core
|
||||||
Qt5::PrintSupport
|
Qt5::PrintSupport
|
||||||
Qt5::Xml
|
Qt5::Xml
|
||||||
Qt5::Svg
|
Qt5::Svg
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ if (Qt5Test_FOUND)
|
|||||||
# Test SubstitutionField class
|
# Test SubstitutionField class
|
||||||
#=======================================
|
#=======================================
|
||||||
qt5_wrap_cpp (TestSubstitutionField_moc_sources TestSubstitutionField.h)
|
qt5_wrap_cpp (TestSubstitutionField_moc_sources TestSubstitutionField.h)
|
||||||
add_executable (TestSubstitutionField TestSubstitutionField.cpp ../SubstitutionField.cpp ${TestSubstitutionField_moc_sources})
|
add_executable (TestSubstitutionField TestSubstitutionField.cpp ${TestSubstitutionField_moc_sources})
|
||||||
target_link_libraries (TestSubstitutionField Model Qt5::Test)
|
target_link_libraries (TestSubstitutionField Model Qt5::Test)
|
||||||
add_test (NAME SubstitutionField COMMAND TestSubstitutionField)
|
add_test (NAME SubstitutionField COMMAND TestSubstitutionField)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user