1
0
Fork 0
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:
Pierre de La Morinerie 2017-09-12 15:05:04 +05:30
parent dc5e3c7177
commit 74c9a8231e
2 changed files with 5 additions and 4 deletions

5
Vagrantfile vendored
View file

@ -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

View file

@ -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