Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] run PKGBUILD's function CHECK if env var CI_MAKEPKG_RUN_CHECK is set #4309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion .ci/ci-build.sh
Expand Up @@ -100,12 +100,19 @@ pacman -R --recursive --unneeded --noconfirm --noprogressbar git python
# Enable linting
export MAKEPKG_LINT_PKGBUILD=1

# Run function CHECK if env var CI_MAKEPKG_RUN_CHECK is set (to any value)
if test "${CI_MAKEPKG_RUN_CHECK+set}" = set; then
MAKEPKG_RUN_CHECK_FLAG=''
else
MAKEPKG_RUN_CHECK_FLAG='--nocheck'
fi

message 'Building packages'
for package in "${packages[@]}"; do
echo "::group::[build] ${package}"
execute 'Clear cache' pacman -Scc --noconfirm
execute 'Fetch keys' "$DIR/fetch-validpgpkeys.sh"
execute 'Building binary' makepkg --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild
execute 'Building binary' makepkg --noconfirm --noprogressbar --syncdeps --rmdeps --cleanbuild "${MAKEPKG_RUN_CHECK_FLAG}"
repo-add $PWD/artifacts/ci.db.tar.gz $PWD/$package/*.pkg.tar.*
pacman -Sy
cp $PWD/$package/*.pkg.tar.* $PWD/artifacts
Expand Down