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.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
|
- hhvm
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=master
|
||||||
|
- APP_NAME=bookmarks
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
|
|
||||||
@ -18,22 +21,22 @@ branches:
|
|||||||
before_install:
|
before_install:
|
||||||
# - composer install
|
# - composer install
|
||||||
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
|
- 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
|
- cd ../core
|
||||||
- php occ app:enable bookmarks
|
- php occ app:enable $APP_NAME
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Test lint
|
# Test lint
|
||||||
- cd apps/bookmarks
|
- cd apps/$APP_NAME
|
||||||
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
|
- find . -name \*.php -exec php -l "{}" \;
|
||||||
|
|
||||||
# Run phpunit tests
|
# Run phpunit tests
|
||||||
- cd tests
|
- cd tests
|
||||||
- phpunit --configuration phpunit.xml
|
- phpunit --configuration phpunit.xml
|
||||||
|
|
||||||
# Create coverage report
|
# Create coverage report
|
||||||
- wget https://scrutinizer-ci.com/ocular.phar
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
|
||||||
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
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