Browse Source

remove syslog from ci, make features flag more clear

pull/493/head
Nils Domrose 6 years ago
parent
commit
62a461ae15
  1. 4
      azure-pipelines.yml
  2. 3
      src/main.rs

4
azure-pipelines.yml

@ -18,8 +18,8 @@ steps:
cargo -V
displayName: Query rust and cargo versions
- script : cargo build --features "sqlite enable_syslog"
- script : cargo build --features "sqlite"
displayName: 'Build project with sqlite backend'
- script : cargo build --features "mysql enable_syslog"
- script : cargo build --features "mysql"
displayName: 'Build project with mysql backend'

3
src/main.rs

@ -48,6 +48,9 @@ fn main() {
#[cfg(all(feature = "sqlite", feature = "mysql"))]
compile_error!("Can't enable both backends");
#[cfg(not(any(feature = "sqlite", feature = "mysql")))]
compile_error!("You need to enable one DB backend. To build with previous defaults do: cargo build --features sqlite");
check_db();
check_rsa_keys();
check_web_vault();

Loading…
Cancel
Save