This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build qemu if there is any change in static-build. Do the same with the rest of projects in this repositoy. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
- Loading branch information
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2018 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
CI=${CI:-} | ||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
readonly toplevel_mk="${script_dir}/../Makefile" | ||
source "${script_dir}/lib.sh" | ||
|
||
make_target() { | ||
target=$1 | ||
dir=$2 | ||
|
||
pushd "${script_dir}/.." >> /dev/null | ||
if [ -n "${CI}" ] && ! git whatchanged origin/master..HEAD "${dir}" | grep "${dir}" >> /dev/null; then | ||
echo "Not changes in ${dir}" | ||
return | ||
fi | ||
popd >> /dev/null | ||
echo "Changes found in $dir" | ||
make -f "${toplevel_mk}" ${target} | ||
} | ||
|
||
make_target test-release-tools "release/" | ||
make_target test-packaging-tools "obs-packaging/" | ||
make_target test-static-build "static-build/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters