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:
parent
24c156c594
commit
4c9bae5176
8
tests/vagrant/Vagrantfile
vendored
8
tests/vagrant/Vagrantfile
vendored
@ -7,8 +7,9 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
# fresh install with encryption-at-rest
|
# fresh install with encryption-at-rest
|
||||||
|
|
||||||
config.vm.define "remote-nextcloud-docker-ehdd" do |m1|
|
if ENV['tests']=='all'
|
||||||
m1.vm.provision :shell, :inline => <<-SH
|
config.vm.define "remote-nextcloud-docker-ehdd" do |m1|
|
||||||
|
m1.vm.provision :shell, :inline => <<-SH
|
||||||
cd /mailinabox
|
cd /mailinabox
|
||||||
source tests/vagrant/globals.sh || exit 1
|
source tests/vagrant/globals.sh || exit 1
|
||||||
export PRIMARY_HOSTNAME=qa1.abc.com
|
export PRIMARY_HOSTNAME=qa1.abc.com
|
||||||
@ -18,6 +19,7 @@ echo -n "boo" >$EHDD_KEYFILE
|
|||||||
tests/system-setup/remote-nextcloud-docker.sh || exit 1
|
tests/system-setup/remote-nextcloud-docker.sh || exit 1
|
||||||
tests/runner.sh ehdd default remote-nextcloud || exit 2
|
tests/runner.sh ehdd default remote-nextcloud || exit 2
|
||||||
SH
|
SH
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# remote-nextcloud-docker w/basic data
|
# remote-nextcloud-docker w/basic data
|
||||||
@ -57,7 +59,7 @@ SH
|
|||||||
# tests/system-setup/setup-default.sh, which pre-assign a value to
|
# tests/system-setup/setup-default.sh, which pre-assign a value to
|
||||||
# most variables.
|
# most variables.
|
||||||
|
|
||||||
if ENV['tests']=='all'
|
if ENV['tests']=='all' or ENV['tests']=='pre-commit'
|
||||||
config.vm.define "unsetvars" do |m1|
|
config.vm.define "unsetvars" do |m1|
|
||||||
m1.vm.hostname = "mailinabox.lan"
|
m1.vm.hostname = "mailinabox.lan"
|
||||||
m1.vm.network "private_network", ip: "192.168.50.4"
|
m1.vm.network "private_network", ip: "192.168.50.4"
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
. "$(dirname "$0")/../lib/color-output.sh"
|
. "$(dirname "$0")/../lib/color-output.sh"
|
||||||
. "$(dirname "$0")/../lib/misc.sh"
|
. "$(dirname "$0")/../lib/misc.sh"
|
||||||
|
|
||||||
|
if [ -z "$tests" ]; then
|
||||||
|
export tests="pre-commit"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
OUTPUT_DIR=out
|
OUTPUT_DIR=out
|
||||||
#rm -rf "$OUTPUT_DIR"
|
#rm -rf "$OUTPUT_DIR"
|
||||||
|
Loading…
Reference in New Issue
Block a user