Skip to content

Commit

Permalink
Add circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Jan 28, 2016
1 parent 055640d commit f116090
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
29 changes: 29 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -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
67 changes: 67 additions & 0 deletions circleci.modx.config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!--
MODX Revolution
Copyright 2006-2015 by MODX, LLC. All rights reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
An example configuration xml file for new CLI MODX installs.
-->
<modx>
<database_type>mysql</database_type>
<database_server>127.0.0.1</database_server>
<database>circle_test</database>
<database_user>ubuntu</database_user>
<database_password></database_password>
<database_connection_charset>utf8</database_connection_charset>
<database_charset>utf8</database_charset>
<database_collation>utf8_general_ci</database_collation>
<table_prefix>modx_</table_prefix>
<https_port>443</https_port>
<http_host>localhost</http_host>
<cache_disabled>0</cache_disabled>

<!-- Set this to 1 if you are using MODX from Git or extracted it from the full MODX package to the server prior
to installation. -->
<inplace>0</inplace>

<!-- Set this to 1 if you have manually extracted the core package from the file core/packages/core.transport.zip.
This will reduce the time it takes for the installation process on systems that do not allow the PHP time_limit
and Apache script execution time settings to be altered. -->
<unpacked>0</unpacked>

<!-- The language to install MODX for. This will set the default manager language to this. Use IANA codes. -->
<language>en</language>

<!-- Information for your administrator account -->
<cmsadmin>circle_test</cmsadmin>
<cmspassword>circle_test</cmspassword>
<cmsadminemail>circle_test@modmore.com</cmsadminemail>

<!-- Paths for your MODX core directory -->
<core_path>/home/ubuntu/Alpacka/modx/core/</core_path>

<!-- Paths for the default contexts that are installed. -->
<context_mgr_path>/home/ubuntu/Alpacka/modx/manager/</context_mgr_path>
<context_mgr_url>/modx/manager/</context_mgr_url>
<context_connectors_path>/home/ubuntu/Alpacka/modx/connectors/</context_connectors_path>
<context_connectors_url>/modx/connectors/</context_connectors_url>
<context_web_path>/home/ubuntu/Alpacka/modx/</context_web_path>
<context_web_url>/modx/</context_web_url>

<!-- Whether or not to remove the setup/ directory after installation. -->
<remove_setup_directory>1</remove_setup_directory>
</modx>

0 comments on commit f116090

Please sign in to comment.