clean travis config a bit

This commit is contained in:
Robin Appelman 2018-03-27 16:53:44 +02:00
commit 4ad10ae0cf
2 changed files with 12 additions and 6 deletions

View file

@ -25,7 +25,7 @@ env:
- BACKEND=libsmbclient
before_install:
- pass=$(perl -e 'print crypt("test", "password")')
- pass=$(perl -e 'print crypt("test", "test")')
- sudo useradd -m -p $pass test
- if [ "$BACKEND" == 'libsmbclient' ]; then ./install_libsmbclient.sh; fi
- cd $CURRENT_DIR
@ -51,11 +51,8 @@ install:
- composer install --dev --no-interaction
script:
- mkdir -p build/logs
- cd tests
- phpunit --coverage-clover ../build/logs/clover.xml --configuration phpunit.xml
- vendor/bin/phpunit --coverage-clover clover.xml -c tests/phpunit.xml
after_script:
- cd $CURRENT_DIR
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php ocular.phar code-coverage:upload --format=php-clover clover.xml

9
Makefile Normal file
View file

@ -0,0 +1,9 @@
.PHONY: tests
all: vendor
vendor: composer.json
composer install
tests: vendor
vendor/bin/phpunit tests -c tests/phpunit.xml