File tree Expand file tree Collapse file tree 3 files changed +33
-15
lines changed Expand file tree Collapse file tree 3 files changed +33
-15
lines changed Original file line number Diff line number Diff line change 1
- /.idea
1
+ /.idea /
2
2
/.phpunit.result.cache
3
- /bin /phing
4
- /bin /phpunit
3
+ /bin /
5
4
/build /
6
5
/composer.lock
7
6
/custom.task.properties
11
10
/test /MySql /etc /stratum.cfg
12
11
/test /coverage.xml
13
12
/test /report /
14
- /vendor /
13
+ /vendor /
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<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" />
4
4
<property name =" VERSION" value =" 0.0.0" />
5
5
6
6
<target name =" build" >
7
7
<echo message =" noting to do." />
8
8
</target >
9
9
10
- <!-- Run composer update -->
10
+ <!-- Run composer update and executes various other updates -->
11
11
<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" />
13
18
</target >
14
19
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 >
15
28
<!-- Creates a new version/release. -->
16
29
<target name =" version" >
17
- <readSemanticVersion file =" .version"
30
+ <ReadSemanticVersion file =" .version"
18
31
versionProperty =" VERSION"
19
32
haltOnError =" true" />
20
33
<!-- Set version of application. -->
38
51
39
52
<!-- Runs all unit tests -->
40
53
<target name =" unit" >
41
- <exec command =" bin/phpunit" passthru =" true" checkreturn =" true" />
54
+ <exec executable =" bin/phpunit" checkreturn =" true" passthru =" true" />
42
55
</target >
43
56
</project >
Original file line number Diff line number Diff line change 14
14
"type" : " library" ,
15
15
"license" : " MIT" ,
16
16
"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 "
20
20
},
21
+ "minimum-stability" : " dev" ,
22
+ "prefer-stable" : true ,
21
23
"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"
24
27
},
25
28
"autoload" : {
26
29
"psr-4" : {
34
37
},
35
38
"config" : {
36
39
"bin-dir" : " bin/" ,
37
- "sort-packages" : true
40
+ "sort-packages" : true ,
41
+ "allow-plugins" : {
42
+ "phing/phing-composer-configurator" : true
43
+ }
38
44
}
39
45
}
You can’t perform that action at this time.
0 commit comments