-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
35 lines (32 loc) · 761 Bytes
/
entrypoint.sh
File metadata and controls
35 lines (32 loc) · 761 Bytes
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
#!/bin/sh
case "$1" in
'test-sw')
composer install
exec ./vendor/bin/phpunit ./tests/
;;
'update-vendor')
exec composer update --no-interaction --no-scripts --no-autoloader --prefer-dist
;;
'php-cs-fixer')
exec php vendor/bin/php-cs-fixer fix --allow-risky=yes --diff
;;
'rector')
exec php vendor/bin/rector process
;;
'phpstan')
exec php vendor/bin/phpstan analyse -c phpstan.neon
;;
'sh')
exec sh
;;
*)
echo "comands allowed"
echo " - test-sw"
echo " - update-vendor"
echo " - php-cs-fix"
echo " - rector"
echo " - phpstan"
echo " - sh"
exit 1
;;
esac