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
|
|
|
|
- uuid-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:
|
|
|
|
- BUILD_TYPE=Coverage CHECK_TARGET=check
|
|
|
|
- BUILD_TYPE=Debug CHECK_TARGET=memcheck
|
|
|
|
- BUILD_TPYE=Release CHECK_TARGET=check
|
|
|
|
- BUILD_TYPE=MinSizeRel CHECK_TARGET=check
|
|
|
|
|
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
|
|
|
- mkdir .deps
|
|
|
|
- cd .deps
|
|
|
|
- wget https://github.com/warmcat/libwebsockets/archive/v3.2.0.tar.gz -O libwebsockets.tar.gz
|
|
|
|
- tar -xf libwebsockets.tar.gz
|
|
|
|
- cd libwebsockets-3.2.0
|
|
|
|
- mkdir .build
|
|
|
|
- cd .build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
2020-02-09 14:14:55 +00:00
|
|
|
- sudo make install
|
2020-02-09 14:04:58 +00:00
|
|
|
- cd ..
|
|
|
|
- cd ..
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
before_script:
|
2020-05-25 18:05:43 +00:00
|
|
|
- meson 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-05-25 18:05:43 +00:00
|
|
|
- meson test
|
2020-03-02 21:31:11 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|