Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-07-27 10:40:05 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-07-27 10:40:05 +0300
commit85ae4e2e9e0036fbd9c5882df459d19c05339da4 (patch)
tree2321073c45b53060b1bb32e8f1d8a6d7ed61441c /.ci.cmake
parent0a111f8d648b6e3c4e6ae3542999659e1ba93512 (diff)
Moved afio over to use new ctest scripting for cdash
Diffstat (limited to '.ci.cmake')
-rw-r--r--.ci.cmake48
1 files changed, 48 insertions, 0 deletions
diff --git a/.ci.cmake b/.ci.cmake
new file mode 100644
index 00000000..dc9e4b20
--- /dev/null
+++ b/.ci.cmake
@@ -0,0 +1,48 @@
+# CTest script for a CI to submit to CDash a run of configuration,
+# building and testing
+cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
+# Bring in the Boost lite cmake tooling
+list(FIND CMAKE_MODULE_PATH "boost-lite" boost_lite_idx)
+if(${boost_lite_idx} EQUAL -1)
+ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../boost-lite/cmake")
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../boost-lite/cmake")
+ elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/outcome/boost-lite/cmake")
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/outcome/boost-lite/cmake")
+ else()
+ message(FATAL_ERROR "FATAL: A copy of boost-lite cannot be found. Try running 'git submodule update --init --recursive'")
+ endif()
+endif()
+include(BoostLiteUtils)
+
+
+configure_ctest_script_for_cdash("afio" "build")
+ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
+
+ctest_start("Experimental")
+ctest_configure()
+ctest_build()
+ctest_test()
+merge_junit_results_into_ctest_xml()
+if(WIN32)
+ execute_process(COMMAND "${CMAKE_COMMAND}" -E tar cfJ afio_v2_binaries_win64.tar.xz
+ doc
+ include
+ Readme.md
+ release_notes.md
+ build/lib/Release/afio_sl-2.0-Windows-x64-Release.lib
+ build/lib/Release/afio_dl-2.0-Windows-x64-Release.lib
+ build/bin/Release/afio_dl-2.0-Windows-x64-Release.dll
+ )
+ ctest_upload(FILES afio_v2_binaries_win64.tar.xz)
+else()
+ execute_process(COMMAND "${CMAKE_COMMAND}" -E tar cfJ afio_v2_binaries_linux64.tar.xz
+ doc
+ include
+ Readme.md
+ release_notes.md
+ build/lib/Release/afio_sl-2.0-Linux-x86_64-Release.a
+ build/bin/Release/afio_dl-2.0-Linux-x86_64-Release.so
+ )
+ ctest_upload(FILES afio_v2_binaries_linux64.tar.xz)
+endif()
+#ctest_submit()