qa:testfest-2010:ubuntu-test-environment

This is an old revision of the document!


Building a PHP Test Environment on Ubuntu

The following instructions were written for and tested on Ubuntu Server 9.10. It possible these same instructions will work on other versions of Ubuntu. Please update all installed packages before starting to build your test environment.

Building a PHP test environment on Ubuntu is a four step process:

  1. Download the Automated Build Scripts
  2. Build the Latest Version of PHP 5.2
  3. Build the Latest Version of PHP 5.3
  4. Build the Latest Version of PHP Trunk

We recommend you run tests you've written against the three main branches of PHP: 5.2, 5.3 and Trunk.

The rest of the instructions assume you will be building your test environment on your user's home directory “~/”. If you choose to build in another location, please change the corresponding paths in all commands found throughout the rest of the instructions.

Download the Automated Build Scripts

Open up a Terminal window and run the following commands in order:

cd ~/

curl -O http://www.ericstewart.org/public/phpt/Ubuntu-Scripts-9.10.tgz

tar -xzf MacOSX-Scripts-10.6.tgz

You've now downloaded and uncompressed the build scripts onto your desktop.

Build the Latest Version of PHP 5.2

Copy the build script to your Desktop using this command:

cp MacOSX-Scripts-10.6/build-minimal-5.2.bash ./

Make the build script executable with this command:

chmod +x ./build-minimal-5.2.bash

Now, you simply run the bash script using this command:

./build-minimal-5.2.bash

You have now build a test environment for PHP 5.2 on your desktop. The build environment will be located in the “php52” folder which will now be present on your Desktop.

Build the Latest Version of PHP 5.3

Copy the build script to your Desktop using this command:

cp MacOSX-Scripts-10.6/build-minimal-5.3.bash ./

Make the build script executable with this command:

chmod +x ./build-minimal-5.3.bash

Now, you simply run the bash script using this command:

./build-minimal-5.3.bash

You have now build a test environment for PHP 5.3 on your desktop. The build environment will be located in the “php53” folder which will now be present on your Desktop.

Build the Latest Version of PHP Trunk

Copy the build script to your Desktop using this command:

cp MacOSX-Scripts-10.6/build-minimal-trunk.bash ./

Make the build script executable with this command:

chmod +x ./build-minimal-trunk.bash

Now, you simply run the bash script using this command:

./build-minimal-trunk.bash

You have now build a test environment for PHP Trunk on your desktop. The build environment will be located in the “php-trunk” folder which will now be present on your Desktop.

qa/testfest-2010/ubuntu-test-environment.1273118601.txt.gz · Last modified: 2017/09/22 13:28 (external edit)