-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
34 lines (31 loc) · 899 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Use this environment for building HTML and PDF versionis of mmd-specification.
#
# Install the requirements:
#
# * https://www.vagrantup.com/downloads.html
# * https://www.virtualbox.org
#
# Build or rebuild doc/mmd-specification.(html|pdf):
#
# vagrant up
#
# Remove the build environment:
#
# vagrant destroy -f
#
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y docker.io docker-compose
SHELL
config.vm.provision "shell", "run": "always", inline: <<-SHELL
cd /vagrant
docker-compose -f docker-compose.asciidoctor.yml up --build
docker-compose -f docker-compose.coverage.yml up --build --exit-code-from coverage
docker-compose -f docker-compose.unittests.yml up --build --exit-code-from unittests
SHELL
end