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
|
set -e
|
||||||
|
|
||||||
# Upgrade Yunohost and the system packages (disabled)
|
# Upgrade Yunohost and the system packages (disabled)
|
||||||
#DEBIAN_FRONTEND=noninteractive sudo apt-get update
|
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 upgrade --yes
|
||||||
|
sudo apt-get dist-upgrade --yes
|
||||||
|
|
||||||
# Finish Yunohost installation
|
# Finish Yunohost installation
|
||||||
if ! [[ -f /etc/yunohost/installed ]]; then
|
if ! [[ -f /etc/yunohost/installed ]]; then
|
||||||
|
|
4
test.sh
4
test.sh
|
@ -77,14 +77,14 @@ function _assert_success() {
|
||||||
function setup() {
|
function setup() {
|
||||||
if $SKIP_SNAPSHOT; then
|
if $SKIP_SNAPSHOT; then
|
||||||
echo "--- Starting Vagrant box ---"
|
echo "--- Starting Vagrant box ---"
|
||||||
vagrant up
|
vagrant up --no-provision
|
||||||
echo "--- (Skipping snapshot restore) ---"
|
echo "--- (Skipping snapshot restore) ---"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (vagrant snapshot list | grep 'yunohost-jessie-pristine' > /dev/null); then
|
if (vagrant snapshot list | grep 'yunohost-jessie-pristine' > /dev/null); then
|
||||||
echo "--- Restoring Vagrant snapshot ---"
|
echo "--- Restoring Vagrant snapshot ---"
|
||||||
vagrant snapshot restore yunohost-jessie-pristine
|
vagrant snapshot restore --no-provision yunohost-jessie-pristine
|
||||||
else
|
else
|
||||||
echo "--- Provisioning Vagrant box ---"
|
echo "--- Provisioning Vagrant box ---"
|
||||||
vagrant up --provision
|
vagrant up --provision
|
||||||
|
|
Loading…
Add table
Reference in a new issue