Logo
Explore Help
Sign In
mirror/libbpf
1
0
Fork 0
You've already forked libbpf
mirror of https://github.com/netdata/libbpf.git synced 2026-04-10 10:39:07 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
b0404eeba8ea122e8debfdb65f6ae5a574395025
libbpf/travis-ci/managers/xenial.sh

16 lines
267 B
Bash
Raw Normal View History

Introduce Travis CI tests In order to libbpf to be used in systemd some testing is required, see related discussions in https://github.com/systemd/systemd/pull/12151 and https://github.com/libbpf/libbpf/pull/29 The tests introduced here mirrors the tests of systemd: For Debian: build with gcc, gcc + asan, clang, clang + asan Debian tests use `docker` virtualization Fror Ubuntu Xenial: build with gcc The differences: Install only libelf and it's dependencies. Instead of Meson build system `make` is used, so `make` remains the preferred method of building and `meson.build` doesn't get rooted in `libbpf`. `travis_wait.bash` is kept as a workaround for https://github.com/travis-ci/travis-ci/issues/9979 An example of testing UI: https://travis-ci.org/wat-ze-hex/libbpf
2019-04-17 11:02:45 -07:00
#!/bin/bash
set -e
set -x
apt-get update
apt-get -y build-dep libelf-dev
apt-get install -y libelf-dev
source "$(dirname $0)/travis_wait.bash"
cd $REPO_ROOT
mkdir build
make CFLAGS='-Werror -Db_sanitize=address,undefined' -C ./src -B OBJDIR=../build
rm -rf build
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 28ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API 粤ICP备2023071974号-5