You've already forked ci-testing-tools
mirror of
https://github.com/armbian/ci-testing-tools.git
synced 2026-01-06 10:31:51 -08:00
build params
This commit is contained in:
19
README.md
19
README.md
@@ -5,5 +5,24 @@ Currently just shell scripts called by jenkins. May evolve into somethign more
|
||||
|
||||
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
|
||||
|
||||
configure_monorepo_watcher
|
||||
generate_test_table
|
||||
cd build
|
||||
get_files_changed
|
||||
get_build_target
|
||||
build_kernel
|
||||
```
|
||||
|
||||
## dependencies
|
||||
* https://github.com/slimm609/monorepo-gitwatcher.git
|
||||
|
||||
@@ -71,8 +71,9 @@ get_build_target() {
|
||||
}
|
||||
|
||||
build_kernel() {
|
||||
local build_config=$1
|
||||
git checkout ${GIT_COMMIT}
|
||||
./compile.sh CONFIG=../ci-testing-tools/config-jenkins-kernel.conf BOARD=${ARMBIAN_BOARD} BRANCH=${ARMBIAN_BRANCH}
|
||||
./compile.sh CONFIG=${build_config} BOARD=${ARMBIAN_BOARD} BRANCH=${ARMBIAN_BRANCH}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user