From 336e4721b42ebde6f45dc517caacb3065e2ed96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Atkurt?= Date: Wed, 4 Jul 2018 08:42:49 +0200 Subject: [PATCH] travis file added. Unittests config file, bootstrap added. --- .travis.yml | 16 ++++++++++++++++ tests/unittests/Bootstrap.php | 3 +++ tests/unittests/phpunit.xml | 26 ++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .travis.yml create mode 100644 tests/unittests/Bootstrap.php create mode 100644 tests/unittests/phpunit.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3bd5292 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: php + +php: + - 7.2 + +services: + - docker + +before_install: + - composer self-update + - composer clear-cache + - composer update --no-interaction --no-ansi --no-suggest --optimize-autoloader --prefer-stable + +script: + - composer install + - phpunit --configuration tests/unittests/phpunit.xml tests/unittests \ No newline at end of file diff --git a/tests/unittests/Bootstrap.php b/tests/unittests/Bootstrap.php new file mode 100644 index 0000000..aa9bf41 --- /dev/null +++ b/tests/unittests/Bootstrap.php @@ -0,0 +1,3 @@ + + + + ../../bootstrap + + + + ../../src + + + + + + + + \ No newline at end of file