Skip to content

Commit 14e6b07

Browse files
committed
cmake: Add cdash support.
1 parent 342b8b2 commit 14e6b07

4 files changed

Lines changed: 21 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ include("cmake/docs.cmake")
3232

3333
# tests
3434
enable_testing()
35+
include(CTest)
3536
add_subdirectory("test/")
3637

3738
# package

CTestConfig.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(CTEST_PROJECT_NAME "node")
2+
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
3+
4+
set(CTEST_DROP_METHOD "http")
5+
set(CTEST_DROP_SITE "my.cdash.org")
6+
set(CTEST_DROP_LOCATION "/submit.php?project=node")
7+
set(CTEST_DROP_SITE_CDASH TRUE)

Makefile.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ package: $(BUILD)/Makefile
2727
test: $(BUILD)/Makefile
2828
cd $(BUILD) && make test
2929

30-
.PHONY: build install clean doc package test
30+
cdash: $(BUILD)/Makefile
31+
cd $(BUILD) && make Experimental
32+
33+
.PHONY: build install clean doc package test cdash

README.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ To build distro packages (tgz, deb, rpm, PackageMaker):
2626

2727
make -f Makefile.cmake package
2828

29+
To submit test results (see http://my.cdash.org/index.php?project=node):
30+
31+
make -f Makefile.cmake cdash
32+
2933
Using cmake directly:
3034
cd ~/your-node-source-dir
3135
mkdir name-of-build-dir (can be anything)
@@ -36,6 +40,11 @@ Using cmake directly:
3640
make commands (make, make install, etc.). The Makefile.cmake file is just a
3741
wrapper around these commands; take a look at it for more details.
3842

43+
Other build targets:
44+
make Experimental
45+
make Nightly
46+
make Continuous
47+
3948
Additional options:
4049
In the CMakeLists.txt, you'll see things like
4150
option(SHARED_V8, ...). If you want to enable any of those options you can

0 commit comments

Comments
 (0)