Files
ci-testing-tools/README.md
2020-02-03 22:15:46 -05:00

1.1 KiB

ci-testing-tools

scripts, tools, configs for CI-testing

Currently just shell scripts called by jenkins. May evolve into somethign more elegant such as a jenkins file.

Uses some simple logic for a best-effort attempt to compile a kernel based on what code has changed

sample jenkins bash script

#!/bin/bash

GIT_COMMIT=${GITHUB_PR_HEAD_SHA}
GIT_PREVIOUS_COMMIT=HEAD

source ci-testing-tools/jenkins_ci.sh

mkdir -p ${WORKSPACE}/build/userpatches
cp -f ${WORKSPACE}/ci-testing-tools/config-jenkins-kernel.conf ${WORKSPACE}/build/userpatches/

configure_monorepo_watcher
generate_test_table

cd build
get_files_changed
get_build_target

build_kernel jenkins-kernel

dependencies

jenkins plugins

notes

get matches from old builds

for log in */builds/*/log;do fgrep family_row $log|fgrep changed;done|uniq|awk  '{print $2}'