From 4be539c5420c43974030f6c0fa805ef527e43233 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Fri, 28 Feb 2014 13:49:56 +0100 Subject: [PATCH 1/3] Updating gitignore --- .gitignore | 3 +++ build/phpdox.xml | 32 ++++++++++++++++++++++++++++++++ build/phpmd.xml | 0 phpdox.xml | 9 --------- 4 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 build/phpdox.xml create mode 100644 build/phpmd.xml delete mode 100644 phpdox.xml diff --git a/.gitignore b/.gitignore index b0e719e9..e154788b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ /bin /docs +/build/* +!/build/phpmd.xml +!/build/phpdox.xml /vendor/ /composer.lock /*.php diff --git a/build/phpdox.xml b/build/phpdox.xml new file mode 100644 index 00000000..eaa24143 --- /dev/null +++ b/build/phpdox.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/phpmd.xml b/build/phpmd.xml new file mode 100644 index 00000000..e69de29b diff --git a/phpdox.xml b/phpdox.xml deleted file mode 100644 index 1ddf5fed..00000000 --- a/phpdox.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - From 8c3ae4ae494f2fe8216e2a69292829984b6da1a3 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Fri, 28 Feb 2014 13:50:03 +0100 Subject: [PATCH 2/3] Adding build related files and modified phpunit coverage --- build.xml | 127 +++++++++++++++++++++++++++++++++++++++++++++++ build/phpdox.xml | 10 ++-- build/phpmd.xml | 13 +++++ phpunit.xml.dist | 5 +- 4 files changed, 150 insertions(+), 5 deletions(-) create mode 100644 build.xml diff --git a/build.xml b/build.xml new file mode 100644 index 00000000..b85793a3 --- /dev/null +++ b/build.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/phpdox.xml b/build/phpdox.xml index eaa24143..a86602dc 100644 --- a/build/phpdox.xml +++ b/build/phpdox.xml @@ -1,14 +1,13 @@ - + - - + + - @@ -24,6 +23,9 @@ + + + diff --git a/build/phpmd.xml b/build/phpmd.xml index e69de29b..6921081f 100644 --- a/build/phpmd.xml +++ b/build/phpmd.xml @@ -0,0 +1,13 @@ + + + + Custom ruleset. + + + + + + + + \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 122309f9..19f79649 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -30,7 +30,10 @@ - + From 2c2a12e4e6345ba3c1e607629f754b5179bbf414 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Fri, 28 Feb 2014 22:44:56 +0100 Subject: [PATCH 3/3] Adding a seperate build script to compile api docs and run coverage and other metrics. --- .gitignore | 2 ++ build.xml | 14 +++++++------- build/phpunit.xml | 40 ++++++++++++++++++++++++++++++++++++++++ phpunit.xml.dist | 9 --------- 4 files changed, 49 insertions(+), 16 deletions(-) create mode 100644 build/phpunit.xml diff --git a/.gitignore b/.gitignore index e154788b..1a5e850a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /bin /docs /build/* +!/build/phpunit.xml !/build/phpmd.xml !/build/phpdox.xml /vendor/ @@ -10,3 +11,4 @@ /apikey.php /phpunit /public_html +/cache.properties diff --git a/build.xml b/build.xml index b85793a3..3942b6ff 100644 --- a/build.xml +++ b/build.xml @@ -1,11 +1,11 @@ - + + depends="prepare,lint,tools-parallel,phpunit,phpdox"/> @@ -13,12 +13,9 @@ + - - @@ -122,6 +119,9 @@ - + + + + diff --git a/build/phpunit.xml b/build/phpunit.xml new file mode 100644 index 00000000..60217598 --- /dev/null +++ b/build/phpunit.xml @@ -0,0 +1,40 @@ + + + + + + ../test/Tmdb/ + + + + + + functional + + + + + + ../lib/Tmdb/ + + + + + + + + \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 19f79649..819f8286 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -28,13 +28,4 @@ ./lib/Tmdb/ - - - - - \ No newline at end of file