2020-02-09 14:04:58 +00:00
|
|
|
dist: bionic
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- cmake
|
|
|
|
- pkgconf
|
|
|
|
- wget
|
|
|
|
- ca-certificates
|
|
|
|
- openssl
|
|
|
|
- libssl-dev
|
|
|
|
- udev
|
|
|
|
- gettext
|
|
|
|
- python3
|
|
|
|
- python3-pip
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-wheel
|
2020-02-09 14:09:39 +00:00
|
|
|
- ninja-build
|
2020-03-02 20:55:39 +00:00
|
|
|
- libconfig-dev
|
2020-03-19 17:33:16 +00:00
|
|
|
- libpam0g-dev
|
2020-03-02 21:44:22 +00:00
|
|
|
- valgrind
|
2020-02-09 14:04:58 +00:00
|
|
|
|
2020-03-02 21:31:11 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
2020-06-06 10:30:37 +00:00
|
|
|
- BUILD_TYPE=debug COVERAGE=true CHECK_OPTS=
|
|
|
|
- BUILD_TYPE=debug COVERAGE=false CHECK_OPTS=--wrap='valgrind --error-exitcode=42'
|
|
|
|
- BUILD_TPYE=release COVERAGE=false CHECK_OPTS=
|
|
|
|
- BUILD_TYPE=minsize COVERAGE=false CHECK_OPTS=
|
2020-03-02 21:31:11 +00:00
|
|
|
|
2020-02-09 14:04:58 +00:00
|
|
|
|
|
|
|
before_install:
|
2020-05-25 18:05:43 +00:00
|
|
|
- sudo pip3 install --system meson
|
2020-02-09 14:04:58 +00:00
|
|
|
|
|
|
|
before_script:
|
2020-06-06 10:30:37 +00:00
|
|
|
- meson -Dbuildtype=$BUILD_TYPE -Db_coverage=$COVERAGE build
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd build
|
2020-05-25 18:05:43 +00:00
|
|
|
- ninja
|
2020-02-09 14:04:58 +00:00
|
|
|
|
|
|
|
script:
|
2020-06-06 10:30:37 +00:00
|
|
|
- meson test $CHECK_OPTS
|
2020-03-02 21:31:11 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|