forked from massgov/openmass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ahoy.yml
70 lines (54 loc) · 1.95 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
ahoyapi: v2
commands:
exec:
# These env variables come from https://github.com/wodby/docker4drupal/issues/273
cmd: docker-compose exec -e COLUMNS=$(tput cols) -e LINES=$(tput lines) -e TERM=$TERM drupal "$@"
usage: Run a command in the container
bash:
cmd: ahoy exec bash
usage: Open a shell inside the container.
up:
cmd: docker-compose up -d "$@"
usage: Start the containers.
down:
cmd: docker-compose down --remove-orphans "$@"
usage: Stop and delete the containers.
stop:
cmd: docker-compose stop "$@"
usage: Stop the containers.
pull:
cmd: docker-compose down --remove-orphans && docker-compose pull && docker-compose up -d
usage: Refresh the database.
updatedb:
cmd: ahoy exec scripts/ma-refresh-local --skip-db-prep
usage: Run after a git pull, so that pending updates are run.
prune:
cmd: docker system prune "$@"
usage: Prune unused images, etc. to gain back disk space.
comi:
cmd: ahoy exec composer install -o "$@"
usage: Run 'composer install' in the container.
yarn:
cmd: ahoy exec yarn "$@"
usage: Run 'yarn install' in the container.
drush:
cmd: ahoy exec vendor/bin/drush "$@"
usage: Run Drush in the container
uli:
cmd: open $(ahoy drush uli "$@" | tr -d '\r')
usage: Run uli in the container and then open local browser.
test:
cmd: ahoy exec scripts/ma-test "$@"
usage: Run all tests in the container.
tail:
cmd: docker-compose logs -f drupal
usage: Tail the Apache + PHP logs.
blackfire:
cmd: ahoy exec blackfire "$@"
usage: "Profile CLI requests. Usages: blackfire curl http://mass.local OR blackfire run --samples=10 drush st"
backstop:
usage: Run BackstopJS visual regression tests.
cmd: docker-compose run backstop "$@"
nightcrawler:
usage: Run NightcrawlerJS fatal error tests.
cmd: ahoy exec node_modules/.bin/nightcrawler --config=.circleci/nightcrawler/nightcrawler $@