mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
test
This commit is contained in:
parent
0f43cba814
commit
24ad74084c
3 changed files with 25 additions and 2 deletions
|
@ -49,6 +49,19 @@ set -a; source "$install_dir/.env"; set +a
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing Python dependencies..." --weight=3
|
||||
|
||||
if [ $YNH_ARCH == "armhf" ] || [ $YNH_ARCH == "armel" ]
|
||||
then
|
||||
# Install rustup is not already installed
|
||||
# We need this to be able to install cryptgraphy on ARM hardware
|
||||
export PATH="$PATH:$install_dir/.cargo/bin:$install_dir/.local/bin:/usr/local/sbin"
|
||||
if [ -e $install_dir/.rustup ]; then
|
||||
sudo -u "$app" env PATH=$PATH rustup update
|
||||
else
|
||||
sudo -u "$app" bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable --profile=minimal'
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
pushd $install_dir
|
||||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
|
|
|
@ -60,6 +60,18 @@ ynh_script_progression --message="Installing Python dependencies..." --weight=3
|
|||
|
||||
ynh_secure_remove $install_dir/.venv
|
||||
|
||||
if [ $YNH_ARCH == "armhf" ] || [ $YNH_ARCH == "armel" ]
|
||||
then
|
||||
# Install rustup is not already installed
|
||||
# We need this to be able to install cryptgraphy on ARM hardware
|
||||
export PATH="$PATH:$install_dir/.cargo/bin:$install_dir/.local/bin:/usr/local/sbin"
|
||||
if [ -e $install_dir/.rustup ]; then
|
||||
sudo -u "$app" env PATH=$PATH rustup update
|
||||
else
|
||||
sudo -u "$app" bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable --profile=minimal'
|
||||
fi
|
||||
fi
|
||||
|
||||
pushd $install_dir
|
||||
python3 -m venv $install_dir/venv
|
||||
source $install_dir/venv/bin/activate
|
||||
|
|
|
@ -16,7 +16,5 @@ test_format = 1.0
|
|||
# Commits to test upgrade from
|
||||
# -------------------------------
|
||||
|
||||
test_upgrade_from.852bf0d.name = "0.7.14"
|
||||
test_upgrade_from.0b20803.name = "0.7.17"
|
||||
test_upgrade_from.ca02214.name = "0.7.18"
|
||||
test_upgrade_from.9c094f9.name = "0.7.21"
|
||||
|
|
Loading…
Reference in a new issue