-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
60 lines (42 loc) · 1.93 KB
/
Makefile
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
sync_full: broker deps
docker compose run --rm app
sync_incremental: broker deps
docker compose run --rm app bash -c "/data/yii batch/incremental"
bash:
docker compose run --rm cli bash
behat:
docker compose run --rm cli bash -c "whenavail brokerdb 3306 20 vendor/bin/behat --config=features/behat.yml --strict --stop-on-failure"
behatlocal:
docker compose run --rm cli bash -c "whenavail brokerdb 3306 20 vendor/bin/behat --config=features/behat.yml --strict --stop-on-failure --tags '~@integration'"
behatlocalappend:
docker compose run --rm cli bash -c "whenavail brokerdb 3306 20 vendor/bin/behat --config=features/behat.yml --tags '~@integration' --append-snippets"
behatv:
docker compose run --rm cli bash -c "whenavail brokerdb 3306 20 vendor/bin/behat -v --config=features/behat.yml --strict --stop-on-failure"
behatappend:
docker compose run --rm cli bash -c "whenavail brokerdb 3306 20 vendor/bin/behat --config=features/behat.yml --append-snippets"
broker:
docker compose up -d brokerdb brokercron broker
make wait_for_broker
clean:
docker compose kill
docker compose rm -f
deps:
docker compose run --rm cli composer install --no-scripts
composershow:
docker compose run --rm cli bash -c 'composer show --format=json --no-dev --no-ansi --locked | jq "[.locked[] | { \"name\": .name, \"version\": .version }]" > dependencies.json'
depsupdate:
docker compose run --rm cli bash -c "composer update --no-scripts"
make composershow
phpmyadmin:
docker compose up -d phpmyadmin
psr2:
docker compose run --rm cli bash -c "vendor/bin/php-cs-fixer fix ."
# NOTE: When running tests locally, make sure you don't exclude the integration
# tests (which we do when testing on CI).
test: deps unittest broker behat
testci: deps broker
docker compose run --rm cli bash -c "./run-tests.sh"
unittest:
docker compose run --rm cli vendor/bin/phpunit
wait_for_broker:
docker compose run --rm cli whenavail broker 80 20 echo "Broker is ready"