зеркало из https://github.com/nextcloud/news.git
add code coverage to php travis
This commit is contained in:
Родитель
39d1eeb119
Коммит
7aff00999a
|
@ -6,6 +6,7 @@ node_modules/
|
|||
js/build/
|
||||
js/*.xml
|
||||
.rvm
|
||||
*.clover
|
||||
|
||||
# just sane ignores
|
||||
.*.sw[po]
|
||||
|
|
|
@ -22,5 +22,8 @@ script:
|
|||
- wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
|
||||
- tar xjf phantomjs-1.9.0-linux-x86_64.tar.bz2
|
||||
- sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
|
||||
- make unit-tests
|
||||
- make javascript-tests
|
||||
- make unit-tests
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -41,7 +41,7 @@ dist: clean
|
|||
test: javascript-tests unit-tests integration-tests acceptance-tests
|
||||
|
||||
unit-tests:
|
||||
phpunit tests/unit
|
||||
phpunit --coverage-clover=coverage.clover tests/unit
|
||||
|
||||
|
||||
integration-tests:
|
||||
|
|
Загрузка…
Ссылка в новой задаче