From c8535497b1482a8fa4c61296d7fda606585353a0 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Mon, 9 Dec 2019 23:41:09 +0100 Subject: [PATCH 1/4] set back CMAKE_REQUIRED_FLAGS https://github.com/cnjinhao/nana/issues/497 https://github.com/cnjinhao/nana/issues/497#issuecomment-563471500 --- build/cmake/select_filesystem.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/build/cmake/select_filesystem.cmake b/build/cmake/select_filesystem.cmake index 8b2acf1d..abd82cb4 100644 --- a/build/cmake/select_filesystem.cmake +++ b/build/cmake/select_filesystem.cmake @@ -161,6 +161,7 @@ else() Set NANA_CMAKE_NANA_FILESYSTEM_FORCE to ON to avoid this warning.") target_compile_definitions(nana PUBLIC STD_FILESYSTEM_NOT_SUPPORTED) set (CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_ORIGINAL}) + set (CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_ORIGINAL}") endif () endif () endif () From 211850039438314ace8d45c920efb67dad96accc Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Thu, 12 Dec 2019 12:27:08 +0100 Subject: [PATCH 2/4] travis test with ctest --- .travis.yml | 56 ++--------------------------------------------------- 1 file changed, 2 insertions(+), 54 deletions(-) diff --git a/.travis.yml b/.travis.yml index e0b80b04..da743231 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,63 +69,11 @@ services: script: - cmake -G"Unix Makefiles" ../nana-demo -DCMAKE_INSTALL_PREFIX=.. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_INSTALL=OFF - make install + - ctest # we have installed in 'user'/ ('user'/demo-build/..), and cmake created 'user'/nana-test/ # todo: separate resources from sources (a directory for images) - ls # we were still in: 'user'/demo-build/ - cd ../nana-test/bin - ls -lh - - ./a_group_impl - - ./animate-bmp - - ./audio_player - - ./background-effects - - ./calculator # COOL !!! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L924 - - ./categ - - ./clicked - - ./decore - - ./dock - - ./drag-button - - ./draw - - ./file_explorer - - ./example_menu # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1022 - - ./example_listbox - - ./example_combox # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1044 - - ./example.button - # - ./filebox-txt # https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1068 - - ./folder_tree_nana # todo failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1193 - - ./folder_tree_std # todo failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1200 - - ./framework_design_1 - - ./framework_design_2 - - ./framework_design_3 - - ./group - - ./HelloWord - - ./helloword_quit # ok - - ./inputbox # ok - - ./label_listener - - ./lambda_event.Cpp11 - - ./listbox_inline_widget - - ./listbox_Resolver - - ./loader_1 - - ./loader_2 # ok - - ./mbox - - ./main - - ./menu_debug - - ./modal_form # ok - - ./MontiHall # ok - - ./helloworld_demo # ok - - ./notepad # ok !! - - ./menu_popuper - - ./widget_show2 # ok !! - - ./widget_show # ok !! - - ./place_login - - ./png - - ./screen # ok - - ./stretch_image - - ./textbox_line_number - - ./threading # ok - - ./thread-pool # ok - - ./various_events - - ./window-dragger # ok - - ./windows-subclassing - - + \ No newline at end of file From d6f2831c7b34710d1374c4f0841fc58b0932ab7c Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Thu, 12 Dec 2019 12:47:14 +0100 Subject: [PATCH 3/4] back to run "manually" - better output --- .travis.yml | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index da743231..beddc26d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,11 +69,65 @@ services: script: - cmake -G"Unix Makefiles" ../nana-demo -DCMAKE_INSTALL_PREFIX=.. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_INSTALL=OFF - make install - - ctest + # - ctest # todo set correct working directory, and show output # we have installed in 'user'/ ('user'/demo-build/..), and cmake created 'user'/nana-test/ # todo: separate resources from sources (a directory for images) - ls # we were still in: 'user'/demo-build/ - cd ../nana-test/bin - ls -lh - \ No newline at end of file + - ./a_group_impl + - ./animate-bmp + - ./audio_player + # - ./audio_player_simple # just play music too long + - ./background-effects + - ./calculator # COOL !!! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L924 + - ./categ + - ./clicked + - ./decore + - ./dock + - ./drag-button + - ./draw + - ./file_explorer + - ./example.button + - ./example_combox # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1044 + - ./example_listbox + - ./example_menu # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1022 + - ./filebox-txt # https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1068 + - ./folder_tree_nana # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1193 + - ./folder_tree_std # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1200 + - ./framework_design_1 + - ./framework_design_2 + - ./framework_design_3 + - ./group + - ./HelloWord + - ./helloword_quit # ok + - ./inputbox # ok + - ./label_listener + - ./lambda_event.Cpp11 + - ./listbox_inline_widget + - ./listbox_Resolver + - ./loader_1 + - ./loader_2 # ok + - ./main + - ./mbox + - ./menu_debug + - ./menu_popuper + - ./modal_form # ok + - ./MontiHall # ok + - ./place_login + - ./helloworld_demo # ok + - ./notepad # ok !! + - ./widget_show2 # ok !! + - ./widget_show # ok !! + - ./png + - ./screen # ok + - ./stretch_image + - ./textbox_line_number + - ./thread-pool # ok + - ./threading # ok + - ./various_events + - ./window-dragger # ok + - ./windows-subclassing + + From 25b5645d5ab97d0eb745e37439baabf01af9c162 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Thu, 12 Dec 2019 13:02:47 +0100 Subject: [PATCH 4/4] fix ctest: set correct working directory, and show output --- .travis.yml | 55 +---------------------------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/.travis.yml b/.travis.yml index beddc26d..fd737985 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,65 +69,12 @@ services: script: - cmake -G"Unix Makefiles" ../nana-demo -DCMAKE_INSTALL_PREFIX=.. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_INSTALL=OFF - make install - # - ctest # todo set correct working directory, and show output + - ctest --verbose # todo set correct working directory, and show output # we have installed in 'user'/ ('user'/demo-build/..), and cmake created 'user'/nana-test/ # todo: separate resources from sources (a directory for images) - ls # we were still in: 'user'/demo-build/ - cd ../nana-test/bin - ls -lh - - ./a_group_impl - - ./animate-bmp - - ./audio_player - # - ./audio_player_simple # just play music too long - - ./background-effects - - ./calculator # COOL !!! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L924 - - ./categ - - ./clicked - - ./decore - - ./dock - - ./drag-button - - ./draw - - ./file_explorer - - ./example.button - - ./example_combox # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1044 - - ./example_listbox - - ./example_menu # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1022 - - ./filebox-txt # https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1068 - - ./folder_tree_nana # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1193 - - ./folder_tree_std # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1200 - - ./framework_design_1 - - ./framework_design_2 - - ./framework_design_3 - - ./group - - ./HelloWord - - ./helloword_quit # ok - - ./inputbox # ok - - ./label_listener - - ./lambda_event.Cpp11 - - ./listbox_inline_widget - - ./listbox_Resolver - - ./loader_1 - - ./loader_2 # ok - - ./main - - ./mbox - - ./menu_debug - - ./menu_popuper - - ./modal_form # ok - - ./MontiHall # ok - - ./place_login - - ./helloworld_demo # ok - - ./notepad # ok !! - - ./widget_show2 # ok !! - - ./widget_show # ok !! - - ./png - - ./screen # ok - - ./stretch_image - - ./textbox_line_number - - ./thread-pool # ok - - ./threading # ok - - ./various_events - - ./window-dragger # ok - - ./windows-subclassing