This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
108 lines (94 loc) · 3.38 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# This file is part of Saft.
#
# (c) Konrad Abicht <[email protected]>
# (c) Natanael Arndt <[email protected]>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
PHPCS = ./vendor/bin/phpcs
PHPCBF = ./vendor/bin/phpcbf
SAMI = ./vendor/bin/sami.php
XSLTPROC = xsltproc
PHPCS-RULES = resources/codesniffer-ruleset.xml
SAMI-CONFIG = resources/sami-config.php
default:
@echo ""
@echo "Saft - CLI"
@echo ""
@echo "You can execute:"
@echo "- make apidoc - Update API doc."
@echo "- make cs - Fixes coding standard issues."
@echo "- make clean - Remove temporary folders and vendor folder."
@echo "- make commit - Runs some quality checks before call git commit."
@echo "- make remove-subpackage-branches - Removes subpackage branches."
@echo "- make remove-subpackage-remotes - Removes subpackage remotes."
@echo "- make setup-subpackage-remotes - Setup subpackage remotes."
@echo "- make test - Run all test suites."
@echo "- make tag-subpackage-repos - Adds a new tag to all subpackage repos."
@echo "- make update-subpackage-repos - Splits commits and add related to appropriate Saft components."
@echo ""
apidoc:
$(SAMI) update -n -v --force $(SAMI-CONFIG)
cs:
vendor/bin/php-cs-fixer fix
clean:
rm -r ./gen ./tmp ./vendor
commit:
make codebeautifier
make codesniffer
git-cola
# Remove all subpackages branches
remove-subpackage-branches:
git branch -D saft.arc2
git branch -D saft.data
git branch -D saft.easyrdf
git branch -D saft.erfurt
git branch -D saft.hardf
git branch -D saft.querycache
git branch -D saft.rdf
git branch -D saft.redland
git branch -D saft.sparql
git branch -D saft.store
git branch -D saft.store.http
git branch -D saft.store.virtuoso
git branch -D saft.test
# Remove all remotes for Saft's subpackages.
remove-subpackage-remotes:
git remote rm saft.arc2
git remote rm saft.data
git remote rm saft.easyrdf
git remote rm saft.erfurt
git remote rm saft.hardf
git remote rm saft.querycache
git remote rm saft.rdf
git remote rm saft.redland
git remote rm saft.sparql
git remote rm saft.store
git remote rm saft.store.http
git remote rm saft.store.virtuoso
git remote rm saft.test
setup:
./scripts/setup-components.sh
# Setup all remotes subpackages
setup-subpackage-remotes:
git remote add saft.arc2 [email protected]:SaftIng/Saft.arc2
git remote add saft.data [email protected]:SaftIng/Saft.data
git remote add saft.easyrdf [email protected]:SaftIng/Saft.easyrdf
git remote add saft.erfurt [email protected]:SaftIng/Saft.erfurt
git remote add saft.hardf [email protected]:SaftIng/Saft.hardf
git remote add saft.querycache [email protected]:SaftIng/Saft.querycache
git remote add saft.rdf [email protected]:SaftIng/Saft.rdf
git remote add saft.redland [email protected]:SaftIng/Saft.redland
git remote add saft.sparql [email protected]:SaftIng/Saft.sparql
git remote add saft.store [email protected]:SaftIng/Saft.store
git remote add saft.store.http [email protected]:SaftIng/Saft.store.http
git remote add saft.store.virtuoso [email protected]:SaftIng/Saft.store.virtuoso
git remote add saft.test [email protected]:SaftIng/Saft.test
tag-subpackage-repos:
./scripts/tag-subpackage-repos.sh $(TAG)
test:
./scripts/run-tests.sh
update-subpackage-repos:
./scripts/update-subpackage-repos.sh