Merge pull request #56 from owncloud/qa-stuff
adding travis.yml and scrutinizer.yml
This commit is contained in:
commit
0230ecab51
3 changed files with 50 additions and 0 deletions
12
.scrutinizer.yml
Normal file
12
.scrutinizer.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
filter:
|
||||
excluded_paths:
|
||||
- '3rdparty/*'
|
||||
|
||||
imports:
|
||||
- javascript
|
||||
- php
|
||||
|
||||
checks:
|
||||
php:
|
||||
code_rating: true
|
||||
duplication: true
|
22
.travis.yml
Normal file
22
.travis.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
language: php
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- hhvm
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- stable7
|
||||
|
||||
script:
|
||||
# Test lint
|
||||
- sh -c "ant test"
|
||||
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: hhvm
|
||||
fast_finish: true
|
16
build.xml
Normal file
16
build.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<project name="owncloud-tasks" basedir="." default="test">
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
<!-- test - Tests if the code syntax is correct and executes phpunit tests -->
|
||||
<target name="test">
|
||||
<apply executable="php" failonerror="true">
|
||||
<arg value="-l" />
|
||||
<fileset dir=".">
|
||||
<include name="**/*.php" />
|
||||
<exclude name="vendor/**/*" />
|
||||
</fileset>
|
||||
</apply>
|
||||
</target>
|
||||
|
||||
</project>
|
Loading…
Reference in a new issue