mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
remove build.xml
This commit is contained in:
parent
a6daccdd88
commit
7a428db693
15
.travis.yml
15
.travis.yml
@ -3,10 +3,13 @@ php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- hhvm
|
||||
|
||||
env:
|
||||
global:
|
||||
- CORE_BRANCH=master
|
||||
- APP_NAME=bookmarks
|
||||
|
||||
matrix:
|
||||
- DB=sqlite
|
||||
|
||||
@ -18,22 +21,22 @@ branches:
|
||||
before_install:
|
||||
# - composer install
|
||||
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
|
||||
- bash ./before_install.sh bookmarks $CORE_BRANCH $DB
|
||||
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
||||
- cd ../core
|
||||
- php occ app:enable bookmarks
|
||||
- php occ app:enable $APP_NAME
|
||||
|
||||
script:
|
||||
# Test lint
|
||||
- cd apps/bookmarks
|
||||
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
|
||||
- cd apps/$APP_NAME
|
||||
- find . -name \*.php -exec php -l "{}" \;
|
||||
|
||||
# Run phpunit tests
|
||||
- cd tests
|
||||
- phpunit --configuration phpunit.xml
|
||||
|
||||
# Create coverage report
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
|
||||
- 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"
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
25
build.xml
25
build.xml
@ -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>
|
Loading…
Reference in New Issue
Block a user