-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91b75e8
commit 297b6c1
Showing
4,715 changed files
with
43,931 additions
and
72,352 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/demos export-ignore | ||
/tests export-ignore | ||
/documentation export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,63 @@ | ||
Development using a virtual machine | ||
################################### | ||
# Development using a virtual machine | ||
|
||
You can set up a development virtual machine for ZF1 unit testing and library | ||
development following these simple instructions. | ||
|
||
1. Install requirements for VM. (Note: these are not required by ZF1 itself) | ||
- VirtualBox (https://www.virtualbox.org/) | ||
- Ruby (http://www.ruby-lang.org/) | ||
- Vagrant (http://vagrantup.com/) | ||
### 1. Install requirements for VM. (Note: these are not required by ZF1 itself) | ||
|
||
2. Checkout repository to any location | ||
> git clone git://github.com:zendframework/zf1.git zf1-dev | ||
> cd zf1-dev | ||
3. Start the process by running Vagrant. | ||
> vagrant up | ||
- VirtualBox (https://www.virtualbox.org/) | ||
- Ruby (http://www.ruby-lang.org/) | ||
- Vagrant (http://vagrantup.com/) | ||
|
||
### 2. Checkout repository to any location | ||
|
||
git clone git://github.com/zendframework/zf1.git zf1-dev | ||
cd zf1-dev | ||
|
||
### 3. Start the process by running Vagrant. | ||
|
||
vagrant up | ||
|
||
This will take a long while as it has to download a VM image and then | ||
provision it. Once it has finished, it will exit and leave you back at the | ||
command prompt. | ||
|
||
This will take a long while as it has to download a VM image and then | ||
provision it. Once it has finished, it will exit and leave you back at the | ||
command prompt. | ||
### 4. SSH into the VM | ||
|
||
4. SSH into the VM | ||
> vagrant ssh | ||
vagrant ssh | ||
|
||
5. Build a version of PHP. | ||
> php-build.sh 5.3.11 | ||
### 5. Build a version of PHP. | ||
|
||
This also takes a while as it compiles PHP for you! | ||
php-build.sh 5.3.11 | ||
|
||
This also takes a while as it compiles PHP for you! | ||
|
||
6. Select PHP to use: | ||
> pe 5.3.11 | ||
### 6. Select PHP to use: | ||
|
||
pe 5.3.11 | ||
|
||
### 7. Run tests | ||
|
||
7. Run tests | ||
> cd /vagrant/tests | ||
> phpunit --stderr -d memory_limit=-1 Zend/Acl/AclTest.php | ||
> phpunit --stderr -d memory_limit=-1 Zend/Amf/AllTests.php | ||
(etc...) | ||
cd /vagrant/tests | ||
phpunit --stderr -d memory_limit=-1 Zend/Acl/AclTest.php | ||
phpunit --stderr -d memory_limit=-1 Zend/Amf/AllTests.php | ||
(etc...) | ||
|
||
Note that you can repeat items 5 and 6 to create any version if PHP. | ||
|
||
Notes: | ||
## Notes: | ||
|
||
- The VM will be running in the background as VBoxHeadless | ||
- HTTP and SSH ports on the VM are forwarded to localhost (22 -> 2222, 80 -> 8081) | ||
- The zf1-dev directory you checked out will be mounted inside the VM at /vagrant | ||
- You can develop by editing the files you cloned in the IDE of you choice. | ||
- To stop the VM do one of the following: | ||
> vagrant suspend # if you plan on running it later | ||
> vagrant halt # if you wish to turn off the VM, but keep it around | ||
> vagrant destroy # if you wish to delete the VM completely | ||
- Also, when any of of the Puppet manifests change (.pp files), it is a good idea to rerun them: | ||
> vagrant provision | ||
|
||
To stop the VM do one of the following: | ||
|
||
vagrant suspend # if you plan on running it later | ||
vagrant halt # if you wish to turn off the VM, but keep it around | ||
vagrant destroy # if you wish to delete the VM completely | ||
|
||
Also, when any of of the Puppet manifests change (.pp files), it is a good idea to rerun them: | ||
|
||
vagrant provision |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,46 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant::Config.run do |config| | ||
# All Vagrant configuration is done here. The most common configuration | ||
# options are documented and commented below. For a complete reference, | ||
# please see the online documentation at vagrantup.com. | ||
|
||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "lucid32" | ||
# Inline provisioning shell script | ||
@script = <<SCRIPT | ||
# The url from where the 'config.vm.box' box will be fetched if it | ||
# doesn't already exist on the user's system. | ||
config.vm.box_url = "http://files.vagrantup.com/lucid32.box" | ||
echo -e '\nexport PATH=~/.composer/vendor/bin:$PATH\n' >> ~/.bashrc | ||
# Boot with a GUI so you can see the screen. (Default is headless) | ||
#config.vm.boot_mode = :gui | ||
# Switch to PHP7 | ||
newphp 7 | ||
# Assign this VM to a host-only network IP, allowing you to access it | ||
# via the IP. Host-only networks can talk to the host machine as well as | ||
# any other machines on the same network, but cannot be accessed (through this | ||
# network interface) by any external networks. | ||
# config.vm.network :hostonly, "192.168.33.10" | ||
# rebuild PHP7 | ||
#makephp 7 | ||
# Assign this VM to a bridged network, allowing you to connect directly to a | ||
# network using the host's network device. This makes the VM appear as another | ||
# physical device on your network. | ||
# config.vm.network :bridged | ||
echo "" | ||
echo "** SSH into the box to run the tests. use newphp to switch between versions and makephp 7 to rebuld PHP 7**" | ||
echo "** Use 'newphp nn' to switch between versions (e.g. newphp 54)**" | ||
echo "** Install PHPUnit via composer global require phpunit/phpunit:~n.n for the version required**" | ||
echo "" | ||
SCRIPT | ||
|
||
# Forward a port from the guest to the host, which allows for outside | ||
# computers to access the VM, whereas host only networking does not. | ||
config.vm.forward_port 80, 8081 | ||
|
||
# Hostname | ||
config.vm.host_name = "zf1.dev" | ||
# Vagrant configuration | ||
VAGRANTFILE_API_VERSION = "2" | ||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |c| | ||
c.vm.define "zf1dev", primary: true do |config| | ||
config.vm.box = 'rasmus/php7dev' | ||
# config.vm.network :forwarded_port, guest: 80, host: 8889 | ||
config.vm.hostname = "zf1dev.localhost" | ||
|
||
config.vm.provision 'shell', inline: @script | ||
|
||
# Pass custom arguments to VBoxManage before booting VM | ||
config.vm.customize [ | ||
# 'modifyvm', :id, '--chipset', 'ich9', # solves kernel panic issue on some host machines | ||
# '--uartmode1', 'file', 'C:\\base6-console.log' # uncomment to change log location on Windows | ||
"setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1" | ||
] | ||
config.vm.provider "virtualbox" do |vb| | ||
vb.customize ["modifyvm", :id, "--memory", "1024"] | ||
end | ||
|
||
# Share an additional folder to the guest VM. The first argument is | ||
# an identifier, the second is the path on the guest to mount the | ||
# folder, and the third is the path on the host to the actual folder. | ||
# config.vm.share_folder "v-data", "/vagrant_data", "../data" | ||
|
||
# Enable provisioning with Puppet stand alone. Puppet manifests | ||
# are contained in a directory path relative to this Vagrantfile. | ||
# You will need to create the manifests directory and a manifest in | ||
# the file lucid32.pp in the manifests_path directory. | ||
# | ||
# An example Puppet manifest to provision the message of the day: | ||
# | ||
# # group { "puppet": | ||
# # ensure => "present", | ||
# # } | ||
# # | ||
# # File { owner => 0, group => 0, mode => 0644 } | ||
# # | ||
# # file { '/etc/motd': | ||
# # content => "Welcome to your Vagrant-built virtual machine! | ||
# # Managed by Puppet.\n" | ||
# # } | ||
# | ||
# config.vm.provision :puppet do |puppet| | ||
# puppet.manifests_path = "manifests" | ||
# puppet.manifest_file = "lucid32.pp" | ||
# end | ||
|
||
|
||
config.vm.provision :puppet do |puppet| | ||
puppet.manifests_path = "puppet/manifests" | ||
puppet.manifest_file = "default.pp" | ||
end | ||
end | ||
|
||
# config.vm.provision :puppet do |puppet| | ||
# puppet.manifests_path = "puppet/manifests" | ||
# puppet.module_path = "puppet/modules" | ||
# puppet.manifest_file = "zf1.pp" | ||
# puppet.options = [ | ||
# '--verbose', | ||
# #'--debug', | ||
# # '--graph', | ||
# # '--graphdir=/vagrant/puppet/graphs' | ||
# ] | ||
# end | ||
|
||
end | ||
# config.vm.customize [ | ||
# # 'modifyvm', :id, '--chipset', 'ich9', # solves kernel panic issue on some host machines | ||
# # '--uartmode1', 'file', 'C:\\base6-console.log' # uncomment to change log location on Windows | ||
# "setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1" | ||
# ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ REM obtain it through the world-wide-web, please send an email | |
REM to [email protected] so we can send you a copy immediately. | ||
REM | ||
REM Zend | ||
REM Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
REM Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | ||
REM http://framework.zend.com/license/new-bsd New BSD License | ||
|
||
|
||
|
Oops, something went wrong.