root/branches/1.0.x/Makefile

Revision 851, 2.2 kB (checked in by laurentj, 9 months ago)

backport into 1.0.x branch tests in CLI context, to improve continues integrations on the jelix server for this branch

Line 
1
2 SHELL=/bin/sh
3 PHP=/usr/bin/php
4 PHPDOC=../../phpdoc/
5
6 CURRENT_PATH = $(shell pwd)
7
8 ifdef DISTPATH
9 DISTPATHSWITCH="MAIN_TARGET_PATH=$(DISTPATH)"
10 else
11 DISTPATH=_dist
12 DISTPATHSWITCH="MAIN_TARGET_PATH=_dist"
13 endif
14 ifdef TESTPATH
15 TESTPATHSWITCH="MAIN_TARGET_PATH=$(TESTPATH)"
16 else
17 TESTPATH=_dev
18 TESTPATHSWITCH="MAIN_TARGET_PATH=_dev"
19 endif
20 ifndef DOCSPATH
21 DOCSPATH=_docs
22 endif
23 ifndef TESTS_DBPROFILES
24 TESTS_DBPROFILES=testapp/var/config/dbprofils.ini.php.dist
25 endif
26
27
28 default:
29         @echo "target:"
30         @echo " nightlies : "
31         @echo "     générations des packages des nightly build"
32         @echo " docs : "
33         @echo "     Génération de la doc"
34         @echo "paramètres facultatifs (valeurs actuelles) :"
35         @echo "   DISTPATH : repertoire cible pour les distributions (" $(DISTPATH) ")"
36         @echo "   TESTPATH : repertoire cible pour developper (" $(TESTPATH) ")"
37
38 nightlies:
39         $(PHP) build/buildjelix.php -D $(DISTPATHSWITCH) build/config/jelix-dist-dev.ini
40         $(PHP) build/buildjelix.php -D $(DISTPATHSWITCH) build/config/jelix-dist-opt.ini
41         $(PHP) build/buildjelix.php -D $(DISTPATHSWITCH) build/config/jelix-dist-gold.ini
42         $(PHP) build/buildapp.php -D $(DISTPATHSWITCH) build/config/testapp-dist.ini
43         $(PHP) build/buildjbt.php -D $(DISTPATHSWITCH) build/config/jbt-dist.ini
44         $(PHP) build/buildjtpl.php -D $(DISTPATHSWITCH) build/config/jtpl-dist.ini
45         $(PHP) build/buildmodules.php -D $(DISTPATHSWITCH) build/config/modules-dist.ini
46         $(PHP) build/buildfonts.php -D $(DISTPATHSWITCH) build/config/jelix-fonts-dist.ini
47
48 tests:
49         $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test2.ini
50         $(PHP) build/buildapp.php -D $(TESTPATHSWITCH) build/config/testapp-test.ini
51         cd $(TESTPATH) && cp $(TESTS_DBPROFILES) testapp/var/config/dbprofils.ini.php
52         cd $(TESTPATH)/testapp/scripts/ && $(PHP) tests.php default:index
53
54 docs: 
55         $(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) build/config/jelix-test.ini
56         cp -R -f build/phpdoc/Converters/HTML/frames $(PHPDOC)phpDocumentor/Converters/HTML/
57         $(PHPDOC)phpdoc \
58         -d $(TESTPATH)/lib/jelix/ \
59         -t $(DOCSPATH) \
60         -o "HTML:frames:DOM/jelix" -s on -ct "contributor,licence" -i *.ini.php \
61         -ti "Jelix API Reference" -ric "README,INSTALL,CHANGELOG,CREDITS,LICENCE,VERSION,BUILD"
62         # -tb $(CURRENT_PATH)/build/phpdoc/
63
Note: See TracBrowser for help on using the browser.
Download in other formats: Plain Text Original Format