Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frozzare/docker-wptest
🐳 Run WordPress tests in a Docker container
https://github.com/frozzare/docker-wptest
docker-container wordpress wordpress-tests
Last synced: 5 days ago
JSON representation
🐳 Run WordPress tests in a Docker container
- Host: GitHub
- URL: https://github.com/frozzare/docker-wptest
- Owner: frozzare
- License: mit
- Created: 2016-09-22T19:30:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-13T11:02:24.000Z (over 3 years ago)
- Last Synced: 2024-04-14T14:49:22.101Z (7 months ago)
- Topics: docker-container, wordpress, wordpress-tests
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 11
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-wptest
Run WordPress tests in a Docker container.
Installed WordPress versions with right test library for each versions:
4.4.x
```
4.4
4.4.1
4.4.2
4.4.3
4.4.4
4.4.5
```4.5.x
```
4.5
4.5.1
4.5.2
4.5.3
4.5.4
```4.6.x
```
4.6
4.6.1
```4.7.x
```
4.7
4.7.1
4.7.2
4.7.3
```4.8.x
```
4.8
4.8.1
4.8.2
4.8.3
```4.9.x
```
4.9
4.9.1
4.9.2
4.9.3
4.9.4
4.9.5
4.9.6
4.9.7
4.9.8
4.9.9
4.9.10
4.9.11
4.9.12
4.9.13
4.9.14
4.9.15
4.9.16
```5.0.x
```
5.0
5.0.1
5.0.2
5.0.3
5.0.4
5.0.5
5.0.6
5.0.7
5.0.8
5.0.9
5.0.10
5.0.11
```5.1.x
```
5.1
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.1.6
5.1.7
5.1.8
```5.2.x
```
5.2
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.2.7
5.2.8
5.2.9
```5.3.x
```
5.3
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.3.6
```5.4.x
```
5.4
5.4.1
5.4.2
5.4.3
5.4.4
```5.5.x
```
5.5
5.5.1
5.5.2
5.5.3
```5.6.x
```
5.6
5.6.1
5.6.2
```5.7.x
```
5.7
```or
```
latest
```## Usage
First create a `mysql` container with user root and no password
```
docker run --name mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mysql:5
```and then you can run:
```
docker run --rm -v $(pwd):/opt --link mysql frozzare/wptest:7.0 vendor/bin/phpunit
```If you run it on Windows and get error like `... "$(pwd)" includes invalid characters...`, try to use `%cs%` instead of `$(pwd)`:
```
docker run --rm -v %cd%:/opt --link mysql frozzare/wptest:7.0 vendor/bin/phpunit
```If you would like to test against another WordPress version add the environment variable `WP_VERSION=4.4` when you run the container.
## Contributing
Add new WordPress versions to `versions.sh` and run `update.sh` instead of adding them to each docker container and update the readme file with new versions.
## License
MIT © [Fredrik Forsmo](https://github.com/frozzare)