forked from gkralik/php7-sapnwrfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
33 lines (30 loc) · 1.48 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
33
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "rasmus/php7dev"
config.vm.synced_folder "/home/grkr/build/nwrfcsdk_x86_64", "/nwrfcsdk"
config.vm.provision "shell", inline: <<-SHELL
apt-get install lcov
sed -i "s/--enable-debug --enable-maintainer-zts/--enable-debug --enable-gcov --enable-maintainer-zts/" /usr/local/bin/makephp
makephp 71 zts
newphp 71 debugzts
echo "/nwrfcsdk/lib" > /etc/ld.so.conf.d/nwrfcsdk.conf
ldconfig
ldconfig
sed -i "s/variables_order=GPCS/variables_order=EGPCS/" /etc/php71/php-cli.ini
sed -i "s/extension=memcached.so/;extension=memcached.so/" /etc/php71/php-cli.ini
sed -i "s/extension=raphf.so/;extension=raphf.so/" /etc/php71/php-cli.ini
sed -i "s/extension=propro.so/;extension=propro.so/" /etc/php71/php-cli.ini
sed -i "s/extension=http.so/;extension=http.so/" /etc/php71/php-cli.ini
sed -i "s/extension=ast.so/;extension=ast.so/" /etc/php71/php-cli.ini
sed -i "s/extension=mysql.so/;extension=mysql.so/" /etc/php71/php-cli.ini
sed -i "s/opcache\.enable=1/opcache\.enable=0/" /etc/php71/php-cli.ini
echo -e "*\thard\tcore\tunlimited" > /etc/security/limits.d/core-dump.conf
ulimit -c unlimited
php -v
SHELL
end