qa:testfest-2010:mac-test-environment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
qa:testfest-2010:mac-test-environment [2010/05/06 04:09] ericstewartqa:testfest-2010:mac-test-environment [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 3: Line 3:
 The following instructions were written for and tested on Mac OS X 10.6 Snow Leopard. Please install all OS software updates before starting to build your test environment. The following instructions were written for and tested on Mac OS X 10.6 Snow Leopard. Please install all OS software updates before starting to build your test environment.
  
-Building a PHP test environment on Mac OS X is a five step process:+Building a PHP test environment on Mac OS X is a three step process:
   - Install Xcode   - Install Xcode
   - Download the Automated Build Scripts   - Download the Automated Build Scripts
-  - Build the Latest Version of PHP 5.2 +  - Run the Build Script
-  - Build the Latest Version of PHP 5.3 +
-  - 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. We recommend you run tests you've written against the three main branches of PHP: 5.2, 5.3 and Trunk.
Line 17: Line 15:
 ===== Install Xcode ===== ===== Install Xcode =====
  
-The build tools that Mac OS X needs to configure compile and build PHP are all included in Xcode. Xcode can be installed from the Mac OS X Installation DVD or [[hhttp://developer.apple.com/technologies/xcode.html|downloaded here]]. Please install Xcode now.+The build tools that Mac OS X needs to configure compile and build PHP are all included in Xcode. Xcode can be installed from the Mac OS X Installation DVD or [[http://developer.apple.com/technologies/xcode.html|downloaded here]]. Please install Xcode now.
 ===== Download the Automated Build Scripts ===== ===== Download the Automated Build Scripts =====
  
Line 24: Line 22:
 ''cd ~/Desktop'' ''cd ~/Desktop''
  
-''curl -O http://www.ericstewart.org/public/phpt/MacOSX-Scripts-10.6.tgz''+''curl -O http://www.ericstewart.org/public/phpt/PHP-Test-Build-Scripts.tgz''
  
-''tar -xzf MacOSX-Scripts-10.6.tgz''+''tar -xzf PHP-Test-Build-Scripts.tgz''
  
 You've now downloaded and uncompressed the build scripts onto your desktop. 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: +===== Run the Build Script =====
- +
-''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 built 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: Copy the build script to your Desktop using this command:
  
-''cp MacOSX-Scripts-10.6/build-minimal-5.3.bash ./''+''cp PHP-Test-Build-Scripts/MacOSX-10.6.sh ./''
  
 Make the build script executable with this command: Make the build script executable with this command:
  
-''chmod +x ./build-minimal-5.3.bash''+''chmod +x ./MacOSX-10.6.sh''
  
-Now, you simply run the bash script using this command:+Now, you simply run the shell script using this command:
  
-''./build-minimal-5.3.bash''+''./MacOSX-10.6.sh''
  
-You have now built 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.+You have now built a test environment for PHP on your desktop. The build environment will include a folder for each of the main PHP branches: "php52", "php53", and "php-trunk".
  
-===== Build the Latest Version of PHP Trunk ===== +===== Screencast =====
- +
-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''+Watch a Screencast demonstration of this entire process [[http://www.youtube.com/watch?v=lkw5jQ_EU2A|Screencast demonstration.]]
  
-Now, you simply run the bash script using this command:+===== Other Tips =====
  
-''./build-minimal-trunk.bash''+Spotlight will index all of these PHP source files (including tests) and you might not want to do thatIf not, consider doing the following:
  
-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.+  * Open: //System Preferences// 
 +  * Select: //Spotlight// 
 +  * Select: //Privacy// 
 +  * Select: //+// 
 +  * Then, choose the root folder(s) you'd like to hide, like php52, php53, and php-trunk used in the demo.
qa/testfest-2010/mac-test-environment.1273118941.txt.gz · Last modified: 2017/09/22 13:28 (external edit)