CI: Fix saneman installation and update.
This commit is contained in:
@@ -20,13 +20,10 @@ message 'Processing changes' "${commits[@]}"
|
||||
test -z "${packages}" && success 'No changes in package recipes'
|
||||
define_build_order || failure 'Could not determine build order'
|
||||
|
||||
# Quality
|
||||
message 'Checking recipe quality'
|
||||
check_recipe_quality || failure 'Could not pass quality check'
|
||||
|
||||
# Build
|
||||
message 'Building packages' "${packages[@]}"
|
||||
execute 'Upgrading the system' pacman --noconfirm --noprogressbar --sync --refresh --refresh --sysupgrade --sysupgrade
|
||||
execute 'Updating system' update_system
|
||||
execute 'Approving recipe quality' check_recipe_quality
|
||||
for package in "${packages[@]}"; do
|
||||
execute 'Building binary' makepkg --noconfirm --noprogressbar --skippgpcheck --nocheck --syncdeps --rmdeps --cleanbuild
|
||||
execute 'Building source' makepkg --noconfirm --noprogressbar --skippgpcheck --allsource
|
||||
|
||||
@@ -129,6 +129,13 @@ execute(){
|
||||
cd - > /dev/null
|
||||
}
|
||||
|
||||
# Update system
|
||||
update_system() {
|
||||
repman add ci.msys 'https://dl.bintray.com/alexpux/msys2' || return 1
|
||||
pacman --noconfirm --noprogressbar --sync --refresh --refresh --sysupgrade --sysupgrade || return 1
|
||||
pacman --noconfirm --noprogressbar --sync ci.msys/pactoys
|
||||
}
|
||||
|
||||
# Sort packages by dependency
|
||||
define_build_order() {
|
||||
local sorted_packages=()
|
||||
|
||||
Reference in New Issue
Block a user