diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-07-30 07:09:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 07:09:59 -0400 |
commit | 8a105bad8188b7581c92811c069676d3110f130b (patch) | |
tree | 0c6358e5c8c5f7b25436760b298b0de3107f4a1f /.travis.yml | |
parent | fdbc559ff9c317ce6cf42a72ea466a2b47211971 (diff) |
Added eBPF collector support to DEB and RPM packages. (#9628)
* Add DEB/RPM package build tests to Travis.
* Add working support for bundling eBPF in binary packages.
* Show stdout and stderr from commands run in LXC.
* Add proper bundling code for libbpf.
* Use AC_CHECK_FILE for libbpf.a external dep.
This way it gets properly logged in both configure output and the
configure log.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 1c35e7eca1..dceed13659 100644 --- a/.travis.yml +++ b/.travis.yml @@ -165,6 +165,46 @@ jobs: script: 'for i in $(seq 0 4); do printf "[XXX: Run #%s]\n" "$i";docker run -it -v "${PWD}:/netdata:rw" -w /netdata "fedora:31" tests/updater_checks.sh && break; done' after_failure: post_message "TRAVIS_MESSAGE" "Netdata updater process failed on bare Fedora 31" + - name: DEB package test + git: + depth: false + before_install: + - sudo apt-get install -y wget lxc python3-lxc python-lxc lxc-templates dh-make git-buildpackage build-essential libdistro-info-perl + before_script: + - export PACKAGES_DIRECTORY="$(mktemp -d -t netdata-packaging-contents-dir-XXXXXX)" && echo "Created packaging directory ${PACKAGES_DIRECTORY}" + script: + - echo "GIT Branch:" && git branch + - echo "Last commit:" && git log -1 + - echo "GIT Describe:" && git describe + - echo "packaging/version:" && cat packaging/version + - echo "Creating LXC environment for the build" && sudo -E .travis/package_management/create_lxc_for_build.sh + - echo "Building package in container" && sudo -E .travis/package_management/build_package_in_container.sh + - sudo chown -R root:travis "/var/lib/lxc" + - sudo chmod -R 750 "/var/lib/lxc" + - echo "Preparing DEB packaging contents for upload" && sudo -E .travis/package_management/prepare_packages.sh + env: + - BUILDER_NAME="builder" BUILD_DISTRO="debian" BUILD_RELEASE="buster" BUILD_STRING="debian/buster" + - PACKAGE_TYPE="deb" REPO_TOOL="apt-get" + + - name: RPM package test + git: + depth: false + before_install: + - sudo apt-get install -y wget lxc lxc-templates python3-lxc python-lxc + before_script: + - export PACKAGES_DIRECTORY="$(mktemp -d -t netdata-packaging-contents-dir-XXXXXX)" && echo "Created packaging directory ${PACKAGES_DIRECTORY}" + script: + - echo "GIT Branch:" && git branch + - echo "Last commit:" && git log -1 + - echo "GIT Describe:" && git describe + - echo "packaging/version:" && cat packaging/version + - echo "Creating LXC environment for the build" && sudo -E .travis/package_management/create_lxc_for_build.sh + - echo "Building package in container" && sudo -E .travis/package_management/build_package_in_container.sh + - sudo chmod -R 755 "/var/lib/lxc" + - echo "Preparing RPM packaging contents for upload" && sudo -E .travis/package_management/prepare_packages.sh + env: + - BUILDER_NAME="builder" BUILD_DISTRO="fedora" BUILD_RELEASE="31" BUILD_STRING="fedora/31" + - PACKAGE_TYPE="rpm" REPO_TOOL="dnf" - stage: Support activities on main branch name: Generate changelog for release (only on special and tagged commit msg) @@ -181,7 +221,6 @@ jobs: depth: false if: commit_message =~ /\[netdata (release candidate|(major|minor|patch) release)\]/ AND tag !~ /(-rc)/ OR (env(GIT_TAG) IS present AND NOT env(GIT_TAG) IS blank) - # ###### Packaging workflow section ###### # References: # https://us.images.linuxcontainers.org |