timer: add hook for allocation functions.
[ccan] / .travis.yml
index 249eac716c5be6738a6c8730c2af819c363b2f48..9f9dbcb1f59f9050c32806c5df3dac0f6a21b02a 100644 (file)
@@ -1,14 +1,65 @@
 language: c
+sudo: false
 
-install:
-        - sudo apt-get update -qq
-        # jset, jmap
-        - sudo apt-get install libjudy-dev
-        # wwviaudio
-        - sudo apt-get install libvorbis-dev libportaudio-dev
-        # tal
-        - sudo apt-get install libtalloc-dev
+matrix:
+  include:
+  - compiler: gcc
+    env: CFLAGS="-std=gnu99"
+  - compiler: gcc-5
+    env: GCOV="gcov-5"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-5
+  - compiler: gcc-6
+    env: GCOV="gcov-6"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-6
+  - compiler: clang
+    addons:
+      apt:
+        packages:
+          - valgrind
+  - dist: trusty
+    addons:
+      apt:
+        packages:
+          - valgrind
+    env: CFLAGS="-std=gnu99"
+    compiler: gcc
+  - dist: trusty
+    compiler: gcc-5
+    env: GCOV="gcov-5"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-5
+          - valgrind
+  - dist: trusty
+    compiler: gcc-6
+    env: GCOV="gcov-6"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-6
+          - valgrind
+  - dist: trusty
+    compiler: clang
+    addons:
+      apt:
+        packages:
+          - valgrind
 
 script:
-        - make
-        - make check
+    - make -j2 -k quiet=1
+    - make -k check quiet=1