CI: Always try to gather test results
[platform/upstream/libxkbcommon.git] / .travis.yml
1 language: c
2
3 matrix:
4   include:
5     - os: linux
6       dist: bionic
7       compiler: gcc
8       before_install:
9         - sudo apt-get -y install xutils-dev doxygen libxcb-xkb-dev valgrind meson libwayland-dev wayland-protocols
10       script:
11         - mkdir autotools-build && pushd autotools-build && ../autogen.sh && make && make check && popd
12         - meson setup meson-build && pushd meson-build && ninja && meson test --print-errorlogs --wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99' && popd
13
14     - os: linux
15       dist: bionic
16       compiler: clang
17       before_install:
18         - sudo apt-get -y install xutils-dev doxygen libxcb-xkb-dev valgrind meson libwayland-dev wayland-protocols
19       script:
20         - mkdir autotools-build && pushd autotools-build && ../autogen.sh && make && make check && popd
21         - meson setup meson-build && pushd meson-build && ninja && meson test --print-errorlogs --wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99' && popd
22
23     - os: osx
24       osx_image: xcode10.2
25       compiler: clang
26       before_install:
27         - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install meson doxygen bison
28         - brew link bison --force
29       before_script:
30         - export PATH="/usr/local/opt/bison/bin:$PATH"
31       script:
32         - meson setup meson-build -Denable-x11=false -Denable-wayland=false && pushd meson-build && ninja && meson test --print-errorlogs && popd