Skip to content

cjk4wp/wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

WordPress

Build Status

This is a private development repository for WordPress.

How to mirror SVN

$ mkdir wpdev && cd wpdev
$ git svn clone -s --prefix=svn/ http://develop.svn.wordpress.org .
$ git remote add origin [email protected]:miya0001/wpdev.git
$ git push origin --all

How to sync

$ git checkout master
$ git svn rebase
$ git push origin --all

How to create patch

Create a working branch:

$ git checkout master
$ git checkout -b my-patch

Commit:

$ git add .
$ git commit -m "Some fix"

Create a patch:

$ git diff master --no-prefix

How to run phpunit

To setup, run following commands:

git checkout master
mysql -u root -e "CREATE DATABASE wordpress_tests;"
cp wp-tests-config-sample.php wp-tests-config.php
sed -i -e "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
sed -i -e "s/yourusernamehere/root/" wp-tests-config.php
sed -i -e "s/yourpasswordhere//" wp-tests-config.php
npm install
$(npm bin)/grunt
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer

Then run phpunit.

How to launch WordPress with the WP-CLI

$ npm install
$ ./node_modules/.bin/grunt
$ wp config create --dbname=wordpress --dbuser=root
$ wp db create
$ mv build/wp-config.php ./
$ wp core install --url="http://localhost:8080" --title=WP --admin_user=admin [email protected] --admin_password=admin
$ wp server --docroot=build/

Checkout the branch of SVN into git

$ git svn fetch svn
$ git checkout -b 5.0 svn/5.0

Sync the branch

$ git svn fetch svn
$ git checkout 5.0
$ git merge svn/5.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published