1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Buildfix on travis.

Don't include incredis when not needed, or cmake will look for hiredis.
Install hiredis and enable redis backend explicitly.
This commit is contained in:
King_DuckZ 2016-07-15 17:12:40 +01:00
parent 2467f2f12d
commit b84c31fb15
3 changed files with 21 additions and 9 deletions

View file

@ -2,7 +2,7 @@ language: cpp
script: script:
- mkdir build - mkdir build
- cd build - cd build
- cmake -DBUILD_TESTING=ON -DDINDEXER_WITH_BUILD_DATE=on -DPBL_WITH_TESTS=off -DDINDEXER_WITH_NICE_MEDIA_TYPES=on .. - cmake -DBUILD_TESTING=ON -DDINDEXER_WITH_BUILD_DATE=on -DPBL_WITH_TESTS=off -DDINDEXER_WITH_NICE_MEDIA_TYPES=on -DDINDEXER_ENABLED_BACKENDS=postgresql,redis ..
- cmake --build . - cmake --build .
- ctest - ctest
- cpack - cpack
@ -23,6 +23,7 @@ gcc_deps: &gcc_deps
- libpq-dev - libpq-dev
- libpq5 - libpq5
- rpm - rpm
- hiredis-dev
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test

View file

@ -109,7 +109,6 @@ target_include_directories(${bare_name}-inc
INTERFACE ${CMAKE_SOURCE_DIR}/include INTERFACE ${CMAKE_SOURCE_DIR}/include
) )
if (NOT DINDEXER_CXX11_ABI AND CMAKE_CXX_COMPILER_VERSION_MAJOR EQUAL "5") if (NOT DINDEXER_CXX11_ABI AND CMAKE_CXX_COMPILER_VERSION_MAJOR EQUAL "5")
message(STATUS "CXX11 ABI disabled (_GLIBCXX_USE_CXX11_ABI=0)") message(STATUS "CXX11 ABI disabled (_GLIBCXX_USE_CXX11_ABI=0)")
add_definitions( add_definitions(
@ -122,6 +121,12 @@ if (NOT DINDEXER_CXX11_ABI AND CMAKE_CXX_COMPILER_VERSION_MAJOR EQUAL "5")
) )
endif() endif()
list(FIND DINDEXER_ENABLED_BACKENDS "redis" redis_found_index)
if (${redis_found_index} GREATER -1)
set(DINDEXER_WITH_REDIS ON)
endif()
unset(redis_found_index)
#Libraries #Libraries
add_subdirectory(src/pq) add_subdirectory(src/pq)
add_subdirectory(src/common) add_subdirectory(src/common)
@ -131,7 +136,9 @@ add_subdirectory(lib/glob2regex)
add_subdirectory(src/backends) add_subdirectory(src/backends)
add_subdirectory(src/core) add_subdirectory(src/core)
add_shared_git_project(lib/duckhandy) add_shared_git_project(lib/duckhandy)
add_shared_git_project(lib/incredis EXCLUDE_FROM_ALL) if (DINDEXER_WITH_REDIS)
add_shared_git_project(lib/incredis EXCLUDE_FROM_ALL)
endif()
#Actions #Actions
add_subdirectory(src/main) add_subdirectory(src/main)

View file

@ -6,6 +6,8 @@ Latest stable release is __0.1.5b__.
[![dindexer on Diaspora*](http://i.imgur.com/DcBZykA.png)](https://mondiaspora.net/tags/dindexer) [![dindexer on Diaspora*](http://i.imgur.com/DcBZykA.png)](https://mondiaspora.net/tags/dindexer)
Follow [my posts on Diaspora](https://mondiaspora.net/tags/dindexer) for the latest development news and to post your comments about the project. Follow [my posts on Diaspora](https://mondiaspora.net/tags/dindexer) for the latest development news and to post your comments about the project.
_CLONING FASTER_: This project uses flat_git. Just run `ruby tools/flat_git.rb <some_empty_dir>` instead of `git submodule init` and you should be good to go. More info [in the wiki](https://github.com/KingDuckZ/dindexer/wiki/flat_git)
## What is dindexer? ## ## What is dindexer? ##
### Purpose ### ### Purpose ###
dindexer (from "Disc Indexer") is a program to help you keep track of where your files are as you back them up on external media. It's like updatedb/locate, but it's designed for never changing removable media, such as DVDs and BluRays. dindexer (from "Disc Indexer") is a program to help you keep track of where your files are as you back them up on external media. It's like updatedb/locate, but it's designed for never changing removable media, such as DVDs and BluRays.
@ -37,12 +39,14 @@ As dindexer needs to write data to a PostgreSQL database, you need to configure
%YAML 1.2 %YAML 1.2
--- ---
db_settings: backend_name: postgresql
username: bob_db postgresql_settings:
password: my_secret_db_password connection:
dbname: dindexerdb username: bob_db
port: 5432 password: my_secret_db_password
address: 127.0.0.1 dbname: dindexerdb
port: 5432
address: 127.0.0.1
## Actions ## ## Actions ##
Actions are just executable files located in a directory that is searched by dindexer. dindexer will list available actions when invoked with no parameters. Actions are just executable files located in a directory that is searched by dindexer. dindexer will list available actions when invoked with no parameters.