Commit 7330de0a authored by Kumar Gala's avatar Kumar Gala Committed by Anas Nashif
Browse files

ci: Update for buildkite environment



* Tweak west_setup:
  - log `west update` to a file to reduce noise in log
  - use `west forall` + `git reset` to make sure files are checked out
    (this is to handle a possible module cache)
* Output when we start sanity_check.  Add a banner for when we run
  sanity_check so it's a bit easier to find in console logs

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 2bd062c2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -146,7 +146,8 @@ function west_setup() {
	pushd ..
	if [ ! -d .west ]; then
		west init -l ${git_dir}
		west update
		west update 1> west.update.log
		west forall -c 'git reset --hard HEAD'
	fi
	popd
}
@@ -253,6 +254,8 @@ if [ -n "$main_ci" ]; then
	${sanitycheck} ${sanitycheck_options} --save-tests test_file_3.txt || exit 1
	cat test_file_1.txt test_file_2.txt test_file_3.txt > test_file.txt

	echo "+++ run sanitycheck"

	# Run a subset of tests based on matrix size
	${sanitycheck} ${sanitycheck_options} --load-tests test_file.txt \
		--subset ${matrix}/${matrix_builds} --retry-failed 3