shithub: libsamplerate

Download patch

ref: bf33ede91fac13a4df3e46ccb2422f6361c05512
parent: e25a0430c08d9618b37244a1c4dc4b0877bd5a14
author: Alexander Grund <alexander.grund@tu-dresden.de>
date: Fri Jul 26 05:12:08 EDT 2019

Improve CI script

Add tests with debug and release builds
Only 1 test with autoconf

--- a/.travis.yml
+++ b/.travis.yml
@@ -1,23 +1,34 @@
 language: c
 
-sudo: required
 dist: xenial
 
-before_install:
-  - sudo add-apt-repository ppa:ondrej/autotools -y # automake 1.15
-  - sudo add-apt-repository ppa:cz.nic-labs/knot-dns -y # pkg-config 0.29.2
-  - sudo apt-get update
-  - sudo apt-get install -y autoconf automake-1.15 pkg-config m4 libsndfile-dev libfftw3-dev libasound2-dev
+jobs:
+  fast_finish: true
+  include:
+    - sudo: required
+      env: USING_AUTOTOOLS=yes
+      before_install:
+        - sudo add-apt-repository ppa:ondrej/autotools -y # automake 1.15
+        - sudo add-apt-repository ppa:cz.nic-labs/knot-dns -y # pkg-config 0.29.2
+        - sudo apt-get update
+        - sudo apt-get install -y autoconf automake-1.15 pkg-config m4
+      script:
+        - ./autogen.sh && ./configure --enable-sndfile --enable-alsa && make distcheck
+        - cat src/config.h
 
+addons:
+  apt:
+    packages: [libsndfile-dev, libfftw3-dev, libasound2-dev]
+
 env:
-  - AUTOGEN=true CMAKE_SHARED=OFF
-  - AUTOGEN=false CMAKE_SHARED=ON
+  - CMAKE_SHARED=OFF BUILD_TYPE=Debug
+  - CMAKE_SHARED=ON BUILD_TYPE=Debug
+  - CMAKE_SHARED=OFF BUILD_TYPE=Release
+  - CMAKE_SHARED=ON BUILD_TYPE=Release
 
 script:
-  - if $AUTOGEN; then ./autogen.sh && ./configure --enable-sndfile --enable-alsa && make distcheck; fi
   - mkdir build
   - cd build
-  - cmake -DBUILD_SHARED_LIBS=$CMAKE_SHARED ..
+  - cmake -DBUILD_SHARED_LIBS=$CMAKE_SHARED -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_FLAGS="-Wall -Wextra -Werror" ..
   - cat config.h
-  - make
-  - make test
+  - make && make test