Skip to content

Commit

Permalink
PHP 7, Vagrant, Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Jul 28, 2017
1 parent a9c7b58 commit 0c4a06c
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 35 deletions.
8 changes: 0 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
language: php
php:
- hhvm
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- 5.3

matrix:
allow_failures:
- php: hhvm

before_script:
- composer install --dev --no-interaction
Expand Down
31 changes: 31 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|

# It seems to need this here or "destroy" errors.
config.vm.box = "boxcutter/ubuntu1604"


config.vm.define "app" do |normal|

config.vm.box = "boxcutter/ubuntu1604"
config.vm.box_version = "2.0.18"


config.vm.synced_folder ".", "/vagrant", :owner=> 'vagrant', :group=>'users', :mount_options => ['dmode=777', 'fmode=777']

config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = false

# Customize the amount of memory on the VM:
vb.memory = "1024"
end

config.vm.provision :shell, path: "vagrant/app/bootstrap.sh"

end


end
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
"role": "Developer"
}
],
"config": {
"platform": {
"php": "7.0.0"
}
},
"require": {
"php": ">=5.3.0",
"php": ">=7.0.0",
"misd/linkify": "1.1.*",
"twig/twig": "2.*"
},
Expand Down
112 changes: 86 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vagrant/app/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

sudo apt-get update
sudo apt-get install -y php phpunit git zip

mkdir /home/vagrant/bin
cd /home/vagrant/bin
wget -q https://getcomposer.org/composer.phar

0 comments on commit 0c4a06c

Please sign in to comment.