mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Vagrant: upgrade Yunohost before running tests
This commit is contained in:
parent
dc5e3c7177
commit
74c9a8231e
2 changed files with 5 additions and 4 deletions
5
Vagrantfile
vendored
5
Vagrantfile
vendored
|
@ -43,8 +43,9 @@ Vagrant.configure("2") do |config|
|
|||
set -e
|
||||
|
||||
# Upgrade Yunohost and the system packages (disabled)
|
||||
#DEBIAN_FRONTEND=noninteractive sudo apt-get update
|
||||
#DEBIAN_FRONTEND=noninteractive sudo apt-get upgrade --yes -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold'
|
||||
sudo apt-get update
|
||||
sudo apt-get upgrade --yes
|
||||
sudo apt-get dist-upgrade --yes
|
||||
|
||||
# Finish Yunohost installation
|
||||
if ! [[ -f /etc/yunohost/installed ]]; then
|
||||
|
|
4
test.sh
4
test.sh
|
@ -77,14 +77,14 @@ function _assert_success() {
|
|||
function setup() {
|
||||
if $SKIP_SNAPSHOT; then
|
||||
echo "--- Starting Vagrant box ---"
|
||||
vagrant up
|
||||
vagrant up --no-provision
|
||||
echo "--- (Skipping snapshot restore) ---"
|
||||
return
|
||||
fi
|
||||
|
||||
if (vagrant snapshot list | grep 'yunohost-jessie-pristine' > /dev/null); then
|
||||
echo "--- Restoring Vagrant snapshot ---"
|
||||
vagrant snapshot restore yunohost-jessie-pristine
|
||||
vagrant snapshot restore --no-provision yunohost-jessie-pristine
|
||||
else
|
||||
echo "--- Provisioning Vagrant box ---"
|
||||
vagrant up --provision
|
||||
|
|
Loading…
Add table
Reference in a new issue