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
29bdebad42
commit
5a8d9edf74
2 changed files with 12 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ env:
|
||||||
- BACKEND=libsmbclient
|
- BACKEND=libsmbclient
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pass=$(perl -e 'print crypt("test", "password")')
|
- pass=$(perl -e 'print crypt("test", "test")')
|
||||||
- sudo useradd -m -p $pass test
|
- sudo useradd -m -p $pass test
|
||||||
- if [ "$BACKEND" == 'libsmbclient' ]; then ./install_libsmbclient.sh; fi
|
- if [ "$BACKEND" == 'libsmbclient' ]; then ./install_libsmbclient.sh; fi
|
||||||
- cd $CURRENT_DIR
|
- cd $CURRENT_DIR
|
||||||
|
|
@ -49,11 +49,8 @@ install:
|
||||||
- composer install --dev --no-interaction
|
- composer install --dev --no-interaction
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p build/logs
|
- vendor/bin/phpunit --coverage-clover clover.xml -c tests/phpunit.xml
|
||||||
- cd tests
|
|
||||||
- phpunit --coverage-clover ../build/logs/clover.xml --configuration phpunit.xml
|
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- cd $CURRENT_DIR
|
|
||||||
- wget https://scrutinizer-ci.com/ocular.phar
|
- 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