Skip to content

Commit 48e74cd

Browse files
committed
Update dependencies.
1 parent 75fa877 commit 48e74cd

File tree

3 files changed

+33
-15
lines changed

3 files changed

+33
-15
lines changed

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/.idea
1+
/.idea/
22
/.phpunit.result.cache
3-
/bin/phing
4-
/bin/phpunit
3+
/bin/
54
/build/
65
/composer.lock
76
/custom.task.properties
@@ -11,4 +10,4 @@
1110
/test/MySql/etc/stratum.cfg
1211
/test/coverage.xml
1312
/test/report/
14-
/vendor/
13+
/vendor/

build.xml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="php-stratum" default="build" basedir=".">
3-
<taskdef name="readSemanticVersion" classname="vendor.setbased.phing-extensions.src.Task.ReadSemanticVersionTask"/>
3+
<taskdef name="ReadSemanticVersion" classname="\SetBased\Phing\Task\ReadSemanticVersionTask"/>
44
<property name="VERSION" value="0.0.0"/>
55

66
<target name="build">
77
<echo message="noting to do."/>
88
</target>
99

10-
<!-- Run composer update -->
10+
<!-- Run composer update and executes various other updates -->
1111
<target name="update">
12-
<exec command="composer update" checkreturn="true" passthru="true"/>
12+
<exec executable="composer" checkreturn="true" passthru="true">
13+
<arg value="--ansi"/>
14+
<arg value="update"/>
15+
</exec>
16+
17+
<phing phingfile="build.xml" target="outdated" haltonfailure="true"/>
1318
</target>
1419

20+
<!-- Show outdated packages -->
21+
<target name="outdated">
22+
<exec executable="composer" checkreturn="false" passthru="true">
23+
<arg value="--ansi"/>
24+
<arg value="outdated"/>
25+
<arg value="--direct"/>
26+
</exec>
27+
</target>
1528
<!-- Creates a new version/release. -->
1629
<target name="version">
17-
<readSemanticVersion file=".version"
30+
<ReadSemanticVersion file=".version"
1831
versionProperty="VERSION"
1932
haltOnError="true"/>
2033
<!-- Set version of application. -->
@@ -38,6 +51,6 @@
3851

3952
<!-- Runs all unit tests -->
4053
<target name="unit">
41-
<exec command="bin/phpunit" passthru="true" checkreturn="true"/>
54+
<exec executable="bin/phpunit" checkreturn="true" passthru="true"/>
4255
</target>
4356
</project>

composer.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
"type": "library",
1515
"license": "MIT",
1616
"require": {
17-
"php": ">=7.3",
18-
"hassankhan/config": "^2.0",
19-
"setbased/helper-cast": "^2.0"
17+
"php": ">=7.4",
18+
"hassankhan/config": "^3.0.1",
19+
"setbased/helper-cast": "^2.1.1"
2020
},
21+
"minimum-stability": "dev",
22+
"prefer-stable": true,
2123
"require-dev": {
22-
"phpunit/phpunit": "^9.0",
23-
"setbased/phing-extensions": "^2.0.1"
24+
"phing/phing": "^3.0.0-RC3",
25+
"phpunit/phpunit": "^9.5.27",
26+
"setbased/phing-extensions": "3.0.1"
2427
},
2528
"autoload": {
2629
"psr-4": {
@@ -34,6 +37,9 @@
3437
},
3538
"config": {
3639
"bin-dir": "bin/",
37-
"sort-packages": true
40+
"sort-packages": true,
41+
"allow-plugins": {
42+
"phing/phing-composer-configurator": true
43+
}
3844
}
3945
}

0 commit comments

Comments
 (0)