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 @@
11 language: c
22
3−sudo: required
43 dist: xenial
54
6−before_install:
7− - sudo add-apt-repository ppa:ondrej/autotools -y # automake 1.15
8− - sudo add-apt-repository ppa:cz.nic-labs/knot-dns -y # pkg-config 0.29.2
9− - sudo apt-get update
10− - sudo apt-get install -y autoconf automake-1.15 pkg-config m4 libsndfile-dev libfftw3-dev libasound2-dev
5+jobs:
6+ fast_finish: true
7+ include:
8+ - sudo: required
9+ 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+
19+addons:
20+ apt:
21+ packages: [libsndfile-dev, libfftw3-dev, libasound2-dev]
1122
1223 env:
13− - AUTOGEN=true CMAKE_SHARED=OFF
14− - AUTOGEN=false CMAKE_SHARED=ON
24+ - CMAKE_SHARED=OFF BUILD_TYPE=Debug
25+ - CMAKE_SHARED=ON BUILD_TYPE=Debug
26+ - CMAKE_SHARED=OFF BUILD_TYPE=Release
27+ - CMAKE_SHARED=ON BUILD_TYPE=Release
1528
1629 script:
17− - if $AUTOGEN; then ./autogen.sh && ./configure --enable-sndfile --enable-alsa && make distcheck; fi
1830 - mkdir build
1931 - 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" ..
2133 - cat config.h
22− - make
23− - make test
34+ - make && 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