qa:testfest-2010:mac-test-environment
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qa:testfest-2010:mac-test-environment [2010/05/06 03:28] – ericstewart | qa: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. | ||
+ | |||
+ | The rest of the instructions assume you will be building your test environment on your ~/Desktop. If you choose to build in another location, please change the corresponding paths in all commands found throughout the rest of the instructions. | ||
===== 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:// | + | 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:// |
+ | ===== Download the Automated Build Scripts ===== | ||
+ | Open up a Terminal window and run the following commands in order: | ||
- | ===== Download | + | '' |
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | You've now downloaded and uncompressed the build scripts onto your desktop. | ||
+ | |||
+ | ===== Run the Build Script | ||
+ | |||
+ | Copy the build script to your Desktop using this command: | ||
+ | |||
+ | '' | ||
+ | |||
+ | Make the build script executable with this command: | ||
+ | |||
+ | '' | ||
+ | Now, you simply run the shell script using this command: | ||
- | ===== Build the Latest Version of PHP 5.2 ===== | + | '' |
+ | 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: " | ||
- | ===== Build the Latest Version of PHP 5.3 ===== | + | ===== Screencast |
+ | Watch a Screencast demonstration of this entire process. | ||
- | ===== Build the Latest Version of PHP Trunk ===== | + | ===== Other Tips ===== |
+ | Spotlight will index all of these PHP source files (including tests) and you might not want to do that. If not, consider doing the following: | ||
+ | * Open: //System Preferences// | ||
+ | * Select: // | ||
+ | * 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.1273116502.txt.gz · Last modified: 2017/09/22 13:28 (external edit)