summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--test/CMakeLists.txt6
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 6837e5c6..e56fcf30 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -66,7 +66,6 @@ before_script:
script:
- ctest --output-on-failure
- - PYTHONPATH=. `cmake -LA . | sed -n 's/Python_EXECUTABLE:FILEPATH=//p'` python/demo.py
notifications:
email:
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index c1dde710..347e4603 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -66,6 +66,12 @@ if (Python_EXECUTABLE)
set_tests_properties(${_class}
PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE}")
endforeach()
+
+ add_test(NAME demo
+ COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/python/demo.py
+ WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
+ set_tests_properties(demo
+ PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE};PYTHONPATH=.")
endif()
### CMakeLists.txt ends here