1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-28 10:24:11 +01:00

cleanup travis.yml and scrutnizer.yml

This commit is contained in:
Thomas Müller 2015-05-04 00:20:29 +02:00
parent eb8fb7a225
commit fc7af9898b
3 changed files with 10 additions and 37 deletions

View File

@ -1,13 +1,3 @@
build_failure_conditions:
#- 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse
- 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6
filter:
excluded_paths:
- 'js/modernizr.custom.js'
@ -24,7 +14,10 @@ imports:
- php
- javascript
tools:
external_code_coverage: true
js_hint:
use_native_config: true

View File

@ -26,7 +26,12 @@ before_install:
# - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
script:
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests
- find . -name \*.php -exec php -l "{}" \;
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests --coverage-clover clover.xml
# Create coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
#&& make javascript-tests

View File

@ -1,25 +0,0 @@
<project name="owncloud-mail" 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>
<!--<exec executable="phpunit" failonerror="true">-->
<!--<arg value="-c" />-->
<!--<arg path="${build.src.dir}/app/"/>-->
<!--<arg value="- -log-junit" />-->
<!--<arg path="${report.dir}/phpunit.xml"/>-->
<!--<arg value="- -coverage-clover" />-->
<!--<arg path=" ${report.dir}/clover.xml"/>-->
<!--</exec>-->
</target>
</project>