mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
preinstall pip packages
This commit is contained in:
parent
a51a90a149
commit
a520ef69ac
1 changed files with 4 additions and 0 deletions
4
utils.sh
4
utils.sh
|
@ -169,6 +169,8 @@ fi"
|
|||
# Pre install dependencies
|
||||
lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "apt-get install --assume-yes $YNH_DEPENDENCIES $BUILD_DEPENDENCIES"
|
||||
|
||||
lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "pip install -U pip pytest pytest-sugar pytest-mock requests-mock mock"
|
||||
|
||||
rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild"
|
||||
|
||||
lxc stop "$base_image_to_rebuild-tmp"
|
||||
|
@ -193,6 +195,8 @@ update_image() {
|
|||
lxc exec "$image_to_update-tmp" -- /bin/bash -c "apt-get update"
|
||||
lxc exec "$image_to_update-tmp" -- /bin/bash -c "apt-get upgrade -y"
|
||||
|
||||
lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "pip install -U pip pytest pytest-sugar pytest-mock requests-mock mock"
|
||||
|
||||
rotate_image "$image_to_update-tmp" "$image_to_update"
|
||||
|
||||
lxc stop "$image_to_update-tmp"
|
||||
|
|
Loading…
Reference in a new issue