-
Notifications
You must be signed in to change notification settings - Fork 9
/
Vagrantfile
32 lines (28 loc) · 1.24 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "bento/ubuntu-24.04"
if RUBY_PLATFORM.include?('darwin') && RUBY_PLATFORM.include?('arm64')
# Apple Silicon/M processor
config.vm.box = 'gutehall/ubuntu24-04'
end
config.vm.synced_folder ".", "/home/vagrant/php-opencage-geocode"
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
apt-get update -qq
apt-get install -y -qq php-cli php-curl php-xml php-mbstring unzip
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
cd /home/vagrant/php-opencage-geocode
composer install
# run tests:
./vendor/bin/phpunit
./vendor/bin/phpcs .
SHELL
end