1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00

Create a default "pre-commit" set of virtual machines

This commit is contained in:
downtownallday 2020-11-27 16:51:10 -05:00
parent 24c156c594
commit 4c9bae5176
2 changed files with 9 additions and 3 deletions

View File

@ -7,6 +7,7 @@ Vagrant.configure("2") do |config|
# fresh install with encryption-at-rest
if ENV['tests']=='all'
config.vm.define "remote-nextcloud-docker-ehdd" do |m1|
m1.vm.provision :shell, :inline => <<-SH
cd /mailinabox
@ -19,6 +20,7 @@ tests/system-setup/remote-nextcloud-docker.sh || exit 1
tests/runner.sh ehdd default remote-nextcloud || exit 2
SH
end
end
# remote-nextcloud-docker w/basic data
@ -57,7 +59,7 @@ SH
# tests/system-setup/setup-default.sh, which pre-assign a value to
# most variables.
if ENV['tests']=='all'
if ENV['tests']=='all' or ENV['tests']=='pre-commit'
config.vm.define "unsetvars" do |m1|
m1.vm.hostname = "mailinabox.lan"
m1.vm.network "private_network", ip: "192.168.50.4"

View File

@ -11,6 +11,10 @@
. "$(dirname "$0")/../lib/color-output.sh"
. "$(dirname "$0")/../lib/misc.sh"
if [ -z "$tests" ]; then
export tests="pre-commit"
fi
OUTPUT_DIR=out
#rm -rf "$OUTPUT_DIR"