WordPress core development environment with PHP built-in web server + WP-CLI.
It is very easy to launch WordPress development environment from svn repository.
- php 5.4 or later
- MySQL
- Subversion
$ mkdir ~/Desktop/wordpress && cd $_
$ curl https://raw.githubusercontent.com/miya0001/wp-core-contribution-kit/master/run.sh | bash
Or
$ mkdir ~/Desktop/wordpress && cd $_
$ curl https://raw.githubusercontent.com/miya0001/wp-core-contribution-kit/master/run.sh | bash -s <db-user> <db-pass> <db-name>
Move into trunk/
directory.
$ cd trunk
Then just run.
$ phpunit
https://make.wordpress.org/core/handbook/testing/automated-testing/
- User:
admin
- Password:
admin
- db-user:
root
- db-pass: (empty)
- db-name:
wptrunk
wptrunk
- For WordPresswptest
- For PHPUnit
Add alias into your ~/.bash_profile
like following.
alias wpcore="curl https://raw.githubusercontent.com/miya0001/wp-core-contribution-kit/master/run.sh | bash -s <db-user> <db-pass>"
Then just run:
$ wpcore <db-name>