-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
45 lines (45 loc) · 1.42 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"name": "njeffers/woocommerce-price-ajax",
"type": "wordpress-plugin",
"authors": [
{
"name": "njeffers",
"email": "[email protected]"
}
],
"scripts": {
"docker-up": [
"docker-compose up -d"
],
"install-wp": [
"docker-compose run --rm wp-cli install-wp"
],
"kill-containers": [
"docker stop $(docker ps -aq) && docker rm $(docker ps -aq)"
],
"kill-remove-containers": [
"docker stop $(docker ps -aq) && docker rm $(docker ps -aq) && docker rmi -f $(docker images -q)"
],
"do-it": [
"@docker-up",
"echo 'Images are started. Lets give the environment some time to boot up. Care for a coffee?'",
"sleep 60s",
"docker-compose run --rm wp-cli install-wp"
],
"wp-logs": [
"docker-compose logs wordpress"
],
"install-wp-test": [
"docker-compose run --rm wp-cli wp scaffold theme-tests wordpress-shuttle --force",
"docker-compose -f docker-compose.yml -f docker-compose.phpunit.yml up -d",
"docker-compose -f docker-compose.phpunit.yml run --rm wordpress_phpunit /app/bin/install-wp-tests.sh wordpress_test root '' mysql_phpunit latest true",
"@testdox"
],
"testdox": [
"docker-compose -f docker-compose.phpunit.yml run --rm wordpress_phpunit phpunit --testdox"
],
"test": [
"docker-compose -f docker-compose.phpunit.yml run --rm wordpress_phpunit phpunit"
]
}
}