-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
29 lines (29 loc) · 1.19 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.5.1-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.5.21 && php -v
- phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml
- phpenv local 5.6.14 && php -v
- phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml
- phpenv local 7.0.4 && php -v
- phpunit --log-junit $CIRCLE_TEST_REPORTS/junit/$(phpenv local).xml