-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
30 lines (22 loc) · 856 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
repoversion=$(shell LANG=C aptitude show php-ease-bootstrap-widgets | grep Version: | awk '{print $$2}')
nextversion=$(shell echo $(repoversion) | perl -ne 'chomp; print join(".", splice(@{[split/\./,$$_]}, 0, -1), map {++$$_} pop @{[split/\./,$$_]}), "\n";')
clean:
rm -rf debian/ease-framework-bricks
rm -rf debian/ease-framework-bricks-doc
rm -rf debian/*.log
rm -rf docs/*
doc:
debian/apigendoc.sh
test:
composer update
echo sudo service postgresql start ; sudo service postgresql start
phpunit --bootstrap tests/Bootstrap.php --configuration tests/configuration.xml tests
codecept run
release:
echo Release v$(nextversion)
dch -v $(nextversion) `git log -1 --pretty=%B | head -n 1`
debuild -i -us -uc -b
git commit -a -m "Release v$(nextversion)"
git tag -a $(nextversion) -m "version $(nextversion)"
deb:
debuild -i -us -uc -b