From f1160903fa710847fb34d473f22294ad843ee17f Mon Sep 17 00:00:00 2001 From: Mark Hamstra Date: Thu, 28 Jan 2016 14:40:30 +0100 Subject: [PATCH] Add circleci config --- circle.yml | 29 +++++++++++++++++ circleci.modx.config.xml | 67 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 circle.yml create mode 100644 circleci.modx.config.xml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..c4d4757 --- /dev/null +++ b/circle.yml @@ -0,0 +1,29 @@ +# default php version +machine: + php: + version: 5.4.4 +# set up MODX +checkout: + post: + # install MODX from git + - git clone https://github.com/modxcms/revolution.git modx/ + - cd modx && git checkout v2.4.2-pl + - cp modx/_build/build.config.sample.php modx/_build/build.config.php + - cp modx/_build/build.distrib.config.sample.php modx/_build/build.distrib.config.php + - cp modx/_build/build.properties.sample.php modx/_build/build.properties.php + - php modx/_build/transport.core.php + # use the included modx.config.xml for the settings + - cp circleci.modx.config.xml modx/setup/config.xml + - cd modx/setup/ && php ./index.php --installmode=new + - cp modx/config.core.php config.core.php +# After running the tests, we run it again on different versions of PHP +test: + override: + - phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml + post: + - phpenv local 5.4.37 && php -v + - phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml + - phpenv local 5.5.21 && php -v + - phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml + - phpenv local 5.6.5 && php -v + - phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml \ No newline at end of file diff --git a/circleci.modx.config.xml b/circleci.modx.config.xml new file mode 100644 index 0000000..556c850 --- /dev/null +++ b/circleci.modx.config.xml @@ -0,0 +1,67 @@ + + + mysql + 127.0.0.1 + circle_test + ubuntu + + utf8 + utf8 + utf8_general_ci + modx_ + 443 + localhost + 0 + + + 0 + + + 0 + + + en + + + circle_test + circle_test + circle_test@modmore.com + + + /home/ubuntu/Alpacka/modx/core/ + + + /home/ubuntu/Alpacka/modx/manager/ + /modx/manager/ + /home/ubuntu/Alpacka/modx/connectors/ + /modx/connectors/ + /home/ubuntu/Alpacka/modx/ + /modx/ + + + 1 + \ No newline at end of file