History

Improve CI script

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

Alexander Grund committed 7 years ago

Commit bf33ede1 parent e25a0431 file · +23 −12Browse files

Unified · Split

.travis.yml+23−12
@@ -1,23 +1,34 @@
1language: c1language: c
2 2
3sudo: required
4dist: xenial3dist: xenial
5 4
6before_install:5jobs:
7 - sudo add-apt-repository ppa:ondrej/autotools -y # automake 1.156 fast_finish: true
8 - sudo add-apt-repository ppa:cz.nic-labs/knot-dns -y # pkg-config 0.29.27 include:
9 - sudo apt-get update8 - sudo: required
10 - sudo apt-get install -y autoconf automake-1.15 pkg-config m4 libsndfile-dev libfftw3-dev libasound2-dev9 env: USING_AUTOTOOLS=yes
10 before_install:
11 - sudo add-apt-repository ppa:ondrej/autotools -y # automake 1.15
12 - sudo add-apt-repository ppa:cz.nic-labs/knot-dns -y # pkg-config 0.29.2
13 - sudo apt-get update
14 - sudo apt-get install -y autoconf automake-1.15 pkg-config m4
15 script:
16 - ./autogen.sh && ./configure --enable-sndfile --enable-alsa && make distcheck
17 - cat src/config.h
18
19addons:
20 apt:
21 packages: [libsndfile-dev, libfftw3-dev, libasound2-dev]
11 22
12env:23env:
13 - AUTOGEN=true CMAKE_SHARED=OFF24 - CMAKE_SHARED=OFF BUILD_TYPE=Debug
14 - AUTOGEN=false CMAKE_SHARED=ON25 - CMAKE_SHARED=ON BUILD_TYPE=Debug
26 - CMAKE_SHARED=OFF BUILD_TYPE=Release
27 - CMAKE_SHARED=ON BUILD_TYPE=Release
15 28
16script:29script:
17 - if $AUTOGEN; then ./autogen.sh && ./configure --enable-sndfile --enable-alsa && make distcheck; fi
18 - mkdir build30 - mkdir build
19 - cd build31 - cd build
20 - cmake -DBUILD_SHARED_LIBS=$CMAKE_SHARED ..32 - cmake -DBUILD_SHARED_LIBS=$CMAKE_SHARED -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_FLAGS="-Wall -Wextra -Werror" ..
21 - cat config.h33 - cat config.h
22 - make34 - make && make test
23 - make test

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t