mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
clean travis config a bit
This commit is contained in:
parent
a2cf2aca97
commit
4ad10ae0cf
2 changed files with 12 additions and 6 deletions
|
|
@ -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
9
Makefile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.PHONY: tests
|
||||
|
||||
all: vendor
|
||||
|
||||
vendor: composer.json
|
||||
composer install
|
||||
|
||||
tests: vendor
|
||||
vendor/bin/phpunit tests -c tests/phpunit.xml
|
||||
Loading…
Add table
Add a link
Reference in a new issue