8000 Remove instructions about setting up a VM · WP-API/WP-API@b46519b · GitHub
[go: up one dir, main page]

Skip to content< 8000 /a>
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit b46519b

Browse files
committed
Remove instructions about setting up a VM
1 parent 7c5bf66 commit b46519b

File tree

1 file changed

+0
-71
lines changed

1 file changed

+0
-71
lines changed

README.md

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -62,77 +62,6 @@ See the
6262
[instructions for running the WordPress PHPUnit test suite](https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/)
6363
to get started.
6464

65-
Here is another way to set up a development environment using a virtual
66-
machine:
67-
68-
1. Install [Vagrant](http://vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/).
69-
2. Clone [Chassis](https://github.com/Chassis/Chassis):
70-
71-
```bash
72-
git clone --recursive git@github.com:Chassis/Chassis.git api-tester
73-
```
74-
75-
3. Clone the [Tester extension](https://github.com/Chassis/Tester) for Chassis:
76-
77-
```bash
78-
# From your base directory, api-tester if following the steps from before
79-
git clone --recursive https://github.com/Chassis/Tester.git extensions/tester
80-
```
81-
82-
4. Update the `wpdevel` submodule in Chassis to latest on master from [WordPress Git Mirror](https://make.wordpress.org/core/2014/01/15/git-mirrors-for-wordpress/):
83-
84-
```bash
85-
# From your base directory, api-tester if following the steps from before
86-
cd extensions/tester/wpdevel
87-
git checkout master
88-
git pull
89-
cd ../../..
90-
```
91-
92-
5. Start the virtual machine:
93-
94-
```bash
95-
vagrant up
96-
```
97-
98-
6. Set the permalink structure to something other than the default, in order to
99-
enable the http://vagrant.local/wp-json/ endpoint URL (if you skip this
100-
step, it can be accessed at http://vagrant.local/?json_route=/):
101-
102-
```bash
103-
vagrant ssh -c "cd /vagrant && wp rewrite structure '/%postname%/'"
104-
```
105-
106-
7. Log in to the virtual machine and run the testing suite:
107-
108-
```bash
109-
vagrant ssh
110-
cd /vagrant/extensions/tester/wpdevel/
111-
phpunit --filter REST
112-
```
113-
114-
**TODO: This is broken: PHP Fatal error: Class 'DOMDocument' not found ...**
115-
116-
**TODO: How to keep `wpdevel/src/` and `/vagrant/wp/` in sync?**
117-
118-
You can also execute the tests in the context of the VM without SSHing
119-
into the virtual machine (this is equivalent to the above):
120-
121-
```bash
122-
vagrant ssh -c 'cd /vagrant/extensions/tester/wpdevel/ && phpunit --filter REST'
123-
```
124-
125-
You're done! You should now have a WordPress site available at
126-
http://vagrant.local; you can access the API via http://vagrant.local/wp-json/
127-
128-
To access the admin interface, visit http://vagrant.local/wp/wp-admin and log
129-
in with the credentials below:
130-
131-
```
132-
Username: admin
133-
Password: password
134-
```
135-
13665
## Issue Tracking
13766

13867
All tickets for the project are being tracked on

0 commit comments

Comments
 (0)
0