├── .gitignore ├── README.markdown ├── build.default.properties └── build.xml /.gitignore: -------------------------------------------------------------------------------- 1 | build.properties 2 | coverage/* 3 | logs/* 4 | tests/* 5 | tools/* -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | # Phing Drupal Template 2 | 3 | An XML build file for the [Phing build system](http://www.phing.info/trac/) with tasks and configuration designed for [Drupal](http://drupal.org) projects. 4 | 5 | For more information read [the documentation](http://reload.github.com/phing-drupal-template/). 6 | 7 | 8 | ## Related projects 9 | * [Jenkins job template for Drupal projects](http://reload.github.com/jenkins-drupal-template/): A standard Jenkins job template for Drupal projects 10 | * [Drupal Jenkins demo](https://github.com/kasperg/drupal-jenkins-demo): An example project which uses the Phing Drupal template and is continuously integrated using the Jenkins job template. -------------------------------------------------------------------------------- /build.default.properties: -------------------------------------------------------------------------------- 1 | # The name of the project 2 | phing.project.name = name-of-project 3 | 4 | # Set this variable to enable the httpget proxy. 5 | # phing.httpget.proxy = http://localhost:3128/ 6 | 7 | # The version of Drupal for the project - 6 or 7 8 | drupal.version = 7 9 | # The install profile to use 10 | drupal.profile = standard 11 | # The database url to use for site installs 12 | drupal.db.url = sqlite:${project.drupal.dir}/database.sqlite 13 | 14 | # The drupal.uri, needed if you want to run the tests. 15 | # Ex: drupal.uri = http://localhost/drupal7 16 | # drupal.uri = 17 | 18 | # Options to build the project using drush_make 19 | # The make file for the project 20 | # drupal.make.file = name-of-project.make 21 | # Whether to include core or not 22 | # drupal.make.nocore = 1 23 | # The directory to make the site in relative to the project root directory 24 | # drupal.make.dir = site 25 | # Should we update the RewriteBase directive in .htaccess ? 26 | # Ex: drupal.make.rewritebase = /drupal7 27 | # drupal.make.rewritebase = 28 | 29 | # The directory containing the modules and themes for the project relative to the drupal root directory. If using Drush Make this is also where modules, themes, libraries etc. will be downloaded to. 30 | project.code.dir = sites/all 31 | # A common prefix for modules developed for the site e.g. your_prefix_your_module 32 | project.code.prefix = your_prefix 33 | # The names of other modules and themes developed for the site seperated by whitespace 34 | project.code.custom = your_theme other_module 35 | 36 | # The repository to clone for Phing PHPLoc task 37 | phing.phploc.repository.url = https://github.com/raphaelstolt/phploc-phing.git 38 | phing.phploc.repository.revision = 1.6.1 39 | 40 | # The repository to clone for Phing Drush task 41 | phing.drush.repository.url = https://github.com/kasperg/phing-drush-task.git 42 | phing.drush.repository.revision = HEAD 43 | 44 | # The repository to clone for PHP CodeSniffer coding standards task 45 | # NB: This is only required if using the phpcs target / PHP_Codesniffer 46 | phpcs.drupalcs.repository = https://github.com/ericduran/drupalcs.git 47 | 48 | # The url to the jslint4java to use 49 | jslint4java.url = http://jslint4java.googlecode.com/files/jslint4java-2.0.0-dist.zip 50 | 51 | # The version of jslint to use 52 | jslint.repository.url = https://github.com/mikewest/JSLint.git 53 | # The file within the repository containing jslint 54 | jslint.file = fulljslint.js 55 | 56 | # The version of csslint to use 57 | csslint.repository.url = https://github.com/stubbornella/csslint.git 58 | csslint.repository.revision = v0.8.5 59 | 60 | # The csslint rules to use 61 | # The current selection is based on discussion here: http://mattwilcox.net/archive/entry/id/1054/ 62 | csslint.rules = display-property-grouping,duplicate-properties,empty-rules,known-properties,box-sizing,compatible-vendor-prefixes,gradients,vendor-prefix,import,zero-units,shorthand,important 63 | # The csslint rules which should cause the build to break if detected 64 | csslint.rules.break = parsing-errors 65 | 66 | 67 | # The url from where to download rhino 68 | rhino.url = http://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R3.zip 69 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 102 | 103 | 104 | 105 | 106 | 107 | 116 | 120 | 121 | 124 | 132 | 133 | 138 | 143 | 144 | 145 | 147 | 148 | 149 | 150 | 152 | 153 | 154 | 155 | 156 | 159 | 163 | 164 | 169 | 170 | 173 | 176 | 177 | 178 | 179 | 180 | 181 | 184 | 185 | 186 | 187 | 188 | 189 | 194 | 197 | 198 | 199 | 200 | 201 | 202 | 205 | 206 | 207 | 208 | 209 | 210 | 214 | 215 | Linting file: ${absfilename} 216 | 217 | 218 | 221 | 222 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 238 | 240 | 241 | 242 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 255 | 257 | 258 | 260 | 262 | 263 | 265 | 266 | 267 | 268 | 269 | 272 | 273 | 274 | 275 | 276 | 277 | 279 | 282 | 283 | 285 | 286 | 287 | 288 | 291 | 294 | 295 | 296 | 297 | 298 | 299 | 302 | 303 | 304 | 305 | 306 | 307 | 311 | 312 | Linting file: ${absfilename} 313 | 314 | 316 | 320 | 321 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 340 | 342 | 344 | 345 | 347 | 348 | 349 | 350 | 351 | 352 | 355 | 357 | 358 | 359 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 382 | 383 | 385 | 387 | 389 | 390 | 391 | 393 | 395 | 396 | 398 | 399 | 400 | 401 | 406 | 409 | 410 | 411 | 413 | 414 | 415 | 416 | 417 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 429 | 430 | 431 | 432 | 435 | 436 | 437 | 438 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 452 | 453 | 454 | 455 | 456 | 460 | 461 | Checking file for debug statements: ${absfilename} 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 478 | 479 | 480 | 481 | 482 | 486 | 489 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 502 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 516 | 519 | 521 | 524 | 525 | 526 | 527 | 528 | 529 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 539 | 540 | 541 | 549 | 552 | Coder Review is not supported for Drupal 6 yet. 553 | Check http://drupal.org/node/858330 for 554 | patches/updates. 555 | 556 | 557 | 560 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 575 | 576 | 577 | 584 | 586 | 588 | 589 | 591 | 592 | 593 | 594 | 598 | 600 | 601 | 603 | 604 | 605 | 606 | 607 | 609 | 610 | 611 | 612 | 613 | 614 | 616 | 618 | 619 | 620 | 622 | no-empty 623 | checkstyle 624 | minor 625 | ${coder.review.type} 626 | 627 | ${project.code.projects} 628 | 629 | ${project.code.custom} 630 | 631 | 632 | 633 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 647 | 648 | 649 | 650 | 651 | 652 | 662 | 665 | 667 | 668 | 669 | 670 | 671 | 673 | 680 | 681 | 682 | 687 | 691 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 706 | 707 | 708 | 709 | 712 | 714 | 715 | 717 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 732 | 734 | 735 | 737 | 738 | ${project.simpletest.tests} 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 753 | 755 | 756 | 760 | 761 | 762 | 763 | 764 | 769 | 772 | 773 | 775 | 779 | 780 | 781 | 785 | 786 | 791 | 794 | 795 | 796 | 797 | 798 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 828 | 829 | 830 | 831 | 832 | 837 | 838 | 840 | 841 | 842 | 844 | 845 | 846 | 847 | 849 | 851 | 853 | 854 | 855 | 857 | 860 | 862 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 882 | 884 | 885 | 886 | 887 | 889 | 890 | 891 | 893 | 894 | 895 | 896 | 898 | 900 | 902 | 904 | 906 | 908 | 909 | 910 | 920 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | drupal-${drupal.version} 944 | 945 | 946 | 947 | 950 | 951 | ${drupal.make.file} 952 | 953 | 955 | 956 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | ${drupal.make.file} 967 | ${drupal.make.dir} 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | Skipping drush make.${line.separator} 991 | drupal.make.skip has been set to ${project.make.skip}. 992 | 993 | 994 | 995 | 996 | 997 | 1004 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | 1078 | 1079 | 1080 | 1081 | 1082 | 1083 | 1084 | 1085 | 1086 | 1087 | 1088 | 1089 | 1090 | 1091 | 1095 | 1097 | 1098 | 1099 | 1100 | 1101 | 1103 | 1104 | 1105 | 1106 | 1107 | 1108 | 1109 | 1110 | 1111 | 1112 | 1113 | 1114 | 1115 | 1116 | 1117 | 1118 | 1119 | 1120 | 1121 | 1127 | 1130 | 1131 | 1132 | ${drupal.profile} 1133 | 1134 | 1137 | 1139 | 1141 | 1142 | 1143 | 1144 | 1145 | 1146 | 1147 | 1149 | 1151 | 1152 | 1153 | 1154 | 1155 | 1156 | ${modules.available} 1157 | ${module} 1158 | 1159 | 1160 | 1161 | 1162 | 1163 | 1164 | 1165 | 1166 | 1167 | 1168 | 1169 | ${download} 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | ${module} 1177 | 1178 | 1179 | 1180 | 1181 | 1182 | 1183 | 1184 | 1185 | 1186 | 1187 | 1188 | 1189 | Cloning ${repo.url} ${repo.revision} into ${repo.dir} 1190 | 1192 | 1193 | 1194 | 1195 | 1196 | 1197 | 1198 | 1199 | 1200 | 1201 | ${patch.url} 1202 | 1203 | 1204 | 1206 | 1207 | 1208 | 1209 | 1212 | 1214 | 1215 | 1216 | 1217 | 1218 | 1219 | 1221 | 1222 | 1223 | 1225 | 1227 | 1229 | 1230 | 1231 | 1232 | 1234 | 1235 | 1236 | 1237 | 1238 | 1239 | 1242 | 1245 | 1247 | 1248 | 1249 | 1251 | 1252 | 1253 | 1254 | 1256 | 1258 | 1259 | 1261 | 1262 | 1263 | 1264 | 1265 | 1266 | 1267 | 1268 | 1271 | 1273 | 1274 | 1275 | 1276 | 1278 | 1279 | 1280 | 1281 | 1287 | 1289 | 1290 | 1292 | 1294 | 1295 | 1296 | 1298 | 1299 | 1301 | 1303 | 1305 | 1306 | 1307 | 1310 | 1312 | 1313 | 1314 | 1315 | 1317 | 1318 | 1319 | 1320 | 1321 | 1323 | 1324 | 1325 | 1327 | 1328 | 1329 | 1330 | --------------------------------------------------------------------------------