This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTaskfile.dist.yml
74 lines (62 loc) · 1.9 KB
/
Taskfile.dist.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
# See https://taskfile.dev
# Create your own local Taskfile.yml to override/add tasks
version: '3'
tasks:
schema_update:
desc: Updates the DB schema
cmds:
- 'php bin/console doctrine:schema:update --force'
- 'php bin/console --env=test doctrine:schema:update --force'
watch:
desc: Starts the watcher for frontend build
cmds:
- 'npm run watch'
reset_db:
desc: Resets the DB and loads fixtures
cmds:
- 'php bin/console doctrine:schema:drop --force --full-database'
- 'php bin/console doctrine:schema:create'
- 'php bin/console doctrine:fixtures:load --append'
install:
desc: Installs dependencies (php and js)
cmds:
- 'composer install'
- 'npm install'
build_dev:
desc: Dev build
cmds:
- task: install
- 'npm run dev'
tests:
desc: Runs the test suite
cmds:
- 'php bin/phpunit'
import:
desc: Gets consultations and documents from Fedlex API
cmds:
- 'php bin/console app:consultations:pull'
- 'php bin/console app:consultations:documents'
- 'php bin/console app:consultations:files'
csfixer:
desc: Formats all php code using csfixer
cmds:
- 'php vendor/bin/php-cs-fixer fix'
psalm:
desc: Runs static analysis with psalm
cmds:
- 'php vendor/bin/psalm --no-cache'
checks:
desc: Runs code formatting, static analysis and unit tests (run before committing!)
deps: [psalm, tests]
cmds:
- task: csfixer
migrations:
desc: Runs migrations
cmds:
- 'php bin/console doctrine:migrations:migrate --no-interaction'
- 'php bin/console --env=test doctrine:migrations:migrate --no-interaction'
fake_migrations:
desc: Pretends that the migrations have run
cmds:
- 'php bin/console doctrine:migrations:sync-metadata-storage'
- 'php bin/console doctrine:migrations:version --add --all --no-interaction'