-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (23 loc) · 796 Bytes
/
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
.DEFAULT_GOAL := build-phar
.PHONY: clean
install-composer:
sh build/install-composer.sh
build-phar: install-composer
build/composer.phar install --no-dev --optimize-autoloader --ignore-platform-req=ext-gd
bin/create-phar build/ifsc-calendar.phar
chmod u+x build/ifsc-calendar.phar
dev: install-composer
build/composer.phar install --dev --quiet --ignore-platform-req=ext-gd
bin/create-phar build/ifsc-calendar.phar
chmod u+x build/ifsc-calendar.phar
docker:
docker build --tag ifsc-calendar . --no-cache
test: install-composer
build/composer.phar install --dev --quiet --ignore-platform-req=ext-gd
vendor/bin/phpunit
install:
cp build/ifsc-calendar.phar /bin/ifsc-calendar
clean:
rm -f build/ifsc-calendar.phar
shell:
docker run -it --tty -v ".:/app" php:8.3.4-cli-alpine sh