Skip to content

Commit 6c16247

Browse files
committed
resurrect 2.2 branch
1 parent bc7be4a commit 6c16247

File tree

108 files changed

+8028
-5365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+8028
-5365
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src_dir: lib

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
.idea
22
/vendor
33
/build
4-
.phpunit.result.cache
5-
.php-cs-fixer.cache

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
php:
3+
- 5.6
4+
- 5.5
5+
- 5.4
6+
install: composer install
7+
script: ./vendor/bin/phing test
8+
after_success: ./vendor/bin/phing report-to-coveralls
9+
notifications:
10+
email:
11+
recipients:
12+
- sven.houtmeyers@cultuurnet.be
13+
- kristof@coomans.eu
14+

Makefile

Lines changed: 0 additions & 30 deletions
This file was deleted.

build.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="Package" default="test">
3+
<fileset id="php" dir=".">
4+
<include name="lib/**/*.php"/>
5+
<include name="tests/**/*.php"/>
6+
</fileset>
7+
8+
<target name="coding-standards">
9+
<phpcodesniffer
10+
standard="phpcs-ruleset.xml"
11+
format="full"
12+
allowedFileExtensions="php"
13+
haltonerror="true"
14+
showWarnings="true">
15+
<fileset refid="php"/>
16+
</phpcodesniffer>
17+
</target>
18+
19+
<target name="coding-standards-strict">
20+
<phpcodesniffer
21+
standard="phpcs-ruleset.xml"
22+
format="full"
23+
allowedFileExtensions="php"
24+
haltonerror="true"
25+
haltonwarning="true">
26+
<fileset refid="php"/>
27+
</phpcodesniffer>
28+
</target>
29+
30+
<target name="lint">
31+
<phplint>
32+
<fileset refid="php"/>
33+
</phplint>
34+
</target>
35+
36+
<!--
37+
The PHPUnit task of Phing does not support white-lists for code
38+
coverage. Therefore we use the exec task instead.
39+
-->
40+
<target name="unit-tests">
41+
<exec
42+
command="./vendor/bin/phpunit"
43+
checkreturn="true"
44+
passthru="true"/>
45+
</target>
46+
47+
<target name="test">
48+
<phingcall target="lint"/>
49+
<phingcall target="unit-tests"/>
50+
<phingcall target="coding-standards"/>
51+
</target>
52+
53+
<target name="report-to-coveralls">
54+
<exec
55+
command="./vendor/bin/coveralls -v"
56+
passthru="true"
57+
checkreturn="true" />
58+
</target>
59+
60+
</project>

composer.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@
1212
"CultureFeed_Cdb_": ["tests"]
1313
}
1414
},
15-
"require-dev": {
16-
"phpunit/phpunit": "^9.0",
17-
"phpstan/phpstan": "^2.1",
18-
"publiq/php-cs-fixer-config": "^2.1"
19-
},
2015
"require": {
21-
"php": ">=8.1",
22-
"ext-simplexml": "*",
23-
"ext-dom": "*"
16+
"ext-mbstring": "*"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "~4.8",
20+
"squizlabs/php_codesniffer": "~2.3",
21+
"phing/phing": "~2.11",
22+
"satooshi/php-coveralls": "~0.7"
2423
},
2524
"minimum-stability": "dev",
26-
"prefer-stable": true
25+
"prefer-stable": true,
26+
"config": {
27+
"platform": {
28+
"php": "5.3.3"
29+
}
30+
}
2731
}

0 commit comments

Comments
 (0)