Build assoc DHT code on travis.

This commit is contained in:
iphydf 2016-08-19 23:31:01 +01:00
parent c597f67012
commit f9c83c1084
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,11 @@ if(DEBUG)
add_definitions(-DTOX_DEBUG=1)
endif()
option(ASSOC_DHT "Enable module to store currently unused ID <=> IP associations" OFF)
if(ASSOC_DHT)
add_definitions(-DENABLE_ASSOC_DHT=1)
endif()
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)

View File

@ -12,7 +12,7 @@ git diff --exit-code
# Build toxcore and run tests.
export CFLAGS="-O3 -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DLOGGING=ON -DDEBUG=ON
RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DLOGGING=ON -DDEBUG=ON -DASSOC_DHT=ON
export CTEST_OUTPUT_ON_FAILURE=1