forked from govcms-tests/tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ahoy.yml
102 lines (82 loc) · 2.71 KB
/
.ahoy.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
ahoyapi: v2
commands:
up:
usage: Build project.
cmd: |
ahoy start-services
docker compose up -d "$@"
down:
usage: Delete project.
cmd: docker compose down
build:
usage: Build project.
cmd: |
docker compose build "$@"
restart:
usage: Restart Docker containers.
cmd: docker compose restart
stop:
usage: Stop Docker containers.
cmd: docker compose stop "$@"
watch:
usage: Use Compose Watch for live development.
cmd: docker compose watch
cli:
usage: Start a shell.
cmd: docker compose exec govcms bash
composer:
usage: Start a composer command.
cmd: docker compose exec govcms composer "$@"
rector:
usage: Analyze your code with Rector and review suggested changes.
cmd: docker compose exec govcms rector "$@"
phpunit:
usage: Run PHPUnit tests.
cmd: docker compose exec govcms phpunit -c web/core "$@"
phpunit-govcms:
usage: Run PHPUnit tests.
cmd: |
docker compose exec govcms composer dump-autoload
docker compose exec govcms phpunit -c web/core tests/phpunit/tests/GovCMS --testdox
phpunit-govcms-baseline:
usage: Run PHPUnit tests.
cmd: |
docker compose exec govcms composer dump-autoload
docker compose exec govcms phpunit -c web/core tests/phpunit/tests/GovCMS/Functional/Baseline --testdox
drupal-check:
usage: Static analysis tool to check for correctness and deprecation errors.
cmd: docker compose exec govcms drupal-check "$@"
cypress:
usage: Run all Cypress tests
cmd: |
cd cy
export CYPRESS_BASE_URL=http://govcms.localhost
npx cypress run "cypress/e2e/*" --env drupalDrushCmdLine="docker compose exec govcms drush %command"
cr:
usage: Alias for 'cypress'
cmd: |
ahoy cypress
co:
usage: Open a new Cypress testing window
cmd: |
cd cy
export CYPRESS_BASE_URL=http://govcms.localhost
npx cypress open --env drupalDrushCmdLine="docker compose exec govcms drush %command"
start-services:
usage: Start the GovCMS local services
cmd: |
docker compose -f docker-compose.services.yml -p govcms-local-services up -d
stop-services:
usage: Stop the GovCMS local services
cmd: |
docker compose -f docker-compose.services.yml -p govcms-local-services stop
restart-services:
usage: Restart the GovCMS local services
cmd: |
docker compose -f docker-compose.services.yml -p govcms-local-services restart
create-certs:
usage: Generate SSL certificates for local development
cmd: |
mkcert -cert-file data/certs/local-cert.pem -key-file data/certs/local-key.pem packeton.govcms.localhost
echo "Certificates generated in data/certs/ directory"