Code

Fix detection of libyajl and fix compilation if it's missing.
[sysdb.git] / .travis.yml
index 0695684..8c60080 100644 (file)
@@ -1,18 +1,26 @@
 language: c
+env:
+  - CIOPTIONS="--with-readline=libedit"
+  - CIOPTIONS="--with-readline=libreadline"
+  - CICFLAGS="-fsanitize=address -fno-omit-frame-pointer" CILDFLAGS="-fsanitize=address"
 compiler:
   - clang
   - gcc
 before_install:
   - sudo apt-get update -qq
 install:
-  - sudo apt-get install -qq check flex bison libtool
-  - sudo apt-get install -qq libdbi-dev libedit-dev libltdl-dev
-  - sudo pip install cpp-coveralls --use-mirrors
-before_script:
-  - ./autogen.sh
-script: ./configure CFLAGS="-O0 --coverage --no-inline -Wno-sign-conversion" && make && make test
+  - sudo apt-get install -qq check flex bison libtool libltdl-dev
+  - sudo apt-get install -qq libdbi-dev libedit-dev libreadline-dev
+  - sudo apt-get install -qq valgrind
+  - sudo pip install cpp-coveralls
+  - pip show cpp-coveralls
+script: ./t/cibuild.sh
 after_success:
-  - coveralls --exclude t --verbose
+  - test "${CC}x" != "gccx" || coveralls --build-root src --exclude t -E '.*\.[yl]'
 branches:
   only:
     - master
+matrix:
+  exclude:
+    - compiler: gcc
+      env: CICFLAGS="-fsanitize=address -fno-omit-frame-pointer" CILDFLAGS="-fsanitize=address"