mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-26 03:09:07 +08:00
vmtest: #121 follow-ups. Loop increase bpf-next git fetch depth
- The previously introduced git fetch depth of bpf-next tree is not sufficient when bpf-next tree is far ahead from libbpf checkpoint commit, so increase the depth up to 128 max. Since 128 may be an overkill for a general case, increase exponentially in a loop until max is reached. - Do not fetch bpf-next twice - Remove setup_example.sh
This commit is contained in:
committed by
Andrii Nakryiko
parent
583bddce6b
commit
f72fe00e70
@@ -11,7 +11,6 @@ env:
|
||||
- CI_MANAGERS="$TRAVIS_BUILD_DIR/travis-ci/managers"
|
||||
- VMTEST_ROOT="$TRAVIS_BUILD_DIR/travis-ci/vmtest"
|
||||
- REPO_ROOT="$TRAVIS_BUILD_DIR"
|
||||
- GIT_FETCH_DEPTH=64
|
||||
- VMTEST_SETUPCMD="PROJECT_NAME=${PROJECT_NAME} ./${PROJECT_NAME}/travis-ci/vmtest/run_selftests.sh"
|
||||
jobs:
|
||||
# Setup command override.
|
||||
@@ -37,8 +36,7 @@ before_script:
|
||||
- sudo apt-get -qq update
|
||||
- sudo apt-get -y install dwarves=1.15-1
|
||||
- sudo apt-get -qq -y install clang-10 lld-10 llvm-10
|
||||
- if [[ "${KERNEL}" = 'LATEST' ]]; then ${VMTEST_ROOT}/build_latest_kernel.sh travis-ci/vmtest/bpf-next; fi
|
||||
- ${VMTEST_ROOT}/prepare_selftests.sh travis-ci/vmtest/bpf-next
|
||||
- KERNEL="${KERNEL}" ${VMTEST_ROOT}/prepare_selftests.sh travis-ci/vmtest/bpf-next
|
||||
# Escape whitespace characters.
|
||||
- setup_cmd=$(sed 's/\([[:space:]]\)/\\\1/g' <<< "${VMTEST_SETUPCMD}")
|
||||
- if [[ "${KERNEL}" = 'LATEST' ]]; then
|
||||
|
||||
Reference in New Issue
Block a user