This repository has been archived by the owner on Jul 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
55 lines (41 loc) · 1.32 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
all: build install
fresh:
git pull
composer install
install: build
# cp -rvf src/FlexiPeeHP /usr/share/php/FlexiPeeHP
static:
composer update
echo rm -rf static/*
echo "STATIC #######################
cd tools/ ; ./update_all.sh ; cd ..
build: static
clean:
rm -rf debian/php-flexibee
rm -rf debian/flexipeehp .phpunit.result.cache debian/flexipeehp.debhelper.log
rm -rf debian/flexipeehp-doc
rm -rf debian/*.log
rm -rf debian/*.substvars
rm -rf docs/*
rm -f debianTest/composer.lock
rm -rf vendor/* composer.lock
apigen:
VERSION=`cat debian/composer.json | grep version | awk -F'"' '{print $4}'`; \
apigen generate -d docs/ -s src/ --destination docs --title "FlexiPeeHP ${VERSION}" --charset UTF-8 --access-levels public --access-levels protected --php --tree
pretest:
composer --ansi --no-interaction update
php -f tests/PrepareForTest.php
phpunit:
composer update
vendor/bin/phpunit --bootstrap testing/bootstrap.php
deb:
dpkg-buildpackage -A -us -uc
rpm:
rpmdev-bumpspec --comment="Build" --userstring="Vítězslav Dvořák <info@vitexsoftware.cz>" flexipeehp.spec
rpmbuild -ba flexipeehp.spec
verup:
git commit debian/composer.json debian/version debian/revision -m "`cat debian/version`-`cat debian/revision`"
git push origin master
dimage:
docker build -t vitexsoftware/flexipeehp .
.PHONY : install