From 178bef26a121dd3900a7ed7f005ff29012d6be89 Mon Sep 17 00:00:00 2001 From: Justin Yost Date: Sat, 4 Apr 2015 11:03:28 -0700 Subject: [PATCH 1/2] Adds Basic Test Setup And Files Signed-off-by: Justin Yost --- Test/Case/AllConfigReadCommandTest.php | 23 +++++++++ Test/Case/AllConfigReadConsoleTest.php | 23 +++++++++ Test/Case/AllConfigReadTest.php | 41 ++++++++++++++++ .../Console/Command/ConfigReadShellTest.php | 49 ++++++++++++++++++- 4 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 Test/Case/AllConfigReadCommandTest.php create mode 100644 Test/Case/AllConfigReadConsoleTest.php create mode 100644 Test/Case/AllConfigReadTest.php diff --git a/Test/Case/AllConfigReadCommandTest.php b/Test/Case/AllConfigReadCommandTest.php new file mode 100644 index 0000000..92091ba --- /dev/null +++ b/Test/Case/AllConfigReadCommandTest.php @@ -0,0 +1,23 @@ +addTestDirectoryRecursive(dirname(__FILE__) . '/Console/Command/'); + return $suite; + } +} diff --git a/Test/Case/AllConfigReadConsoleTest.php b/Test/Case/AllConfigReadConsoleTest.php new file mode 100644 index 0000000..7e53122 --- /dev/null +++ b/Test/Case/AllConfigReadConsoleTest.php @@ -0,0 +1,23 @@ +addTestDirectoryRecursive(dirname(__FILE__) . '/Console/'); + return $suite; + } +} diff --git a/Test/Case/AllConfigReadTest.php b/Test/Case/AllConfigReadTest.php new file mode 100644 index 0000000..9b39263 --- /dev/null +++ b/Test/Case/AllConfigReadTest.php @@ -0,0 +1,41 @@ +addTestFile($path . $file); + } + } + return $suite; + } + +} diff --git a/Test/Case/Console/Command/ConfigReadShellTest.php b/Test/Case/Console/Command/ConfigReadShellTest.php index 85a0b3a..c0cc8fe 100644 --- a/Test/Case/Console/Command/ConfigReadShellTest.php +++ b/Test/Case/Console/Command/ConfigReadShellTest.php @@ -1,2 +1,49 @@ markTestIncomplete("No tests implemented for ConfigReadShell."); + } + +} From dfc3da18b777373342b6e7ceb07fce39f1510a6c Mon Sep 17 00:00:00 2001 From: Justin Yost Date: Sat, 4 Apr 2015 11:03:39 -0700 Subject: [PATCH 2/2] Adds A Travis.yml File Signed-off-by: Justin Yost --- .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ef7bdcb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,48 @@ +language: php + +php: + - 5.4 + - 5.5 + - 5.6 + +env: + global: + - PLUGIN_NAME=ConfigRead + - REQUIRE="" + - PHPCS_ARGS="-p --extensions=php --standard=vendor/loadsys/loadsys_codesniffer/Loadsys --ignore=vendor/ ." + + matrix: + - DB=mysql CAKE_VERSION=2.5 + - DB=mysql CAKE_VERSION=2.6 + +matrix: + fast_finish: true + include: + - php: 5.6 + env: + - COVERALLS=1 + - DB=mysql + - CAKE_VERSION=2.6 + - php: 5.6 + env: + - DB=mysql + - CAKE_VERSION=2.6 + - PHPCS=1 + allow_failures: + +before_install: + - composer self-update + +before_script: + - git clone -b master https://github.com/FriendsOfCake/travis.git --depth 1 ../travis + - ../travis/before_script.sh + - composer require --dev --no-interaction --prefer-source loadsys/loadsys_codesniffer=* + +script: + - ../travis/script.sh + +after_success: + - ../travis/after_success.sh + +notifications: + email: false