mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
split running of smbclient and libsmbclient backend tests
This commit is contained in:
parent
53fe7f2a44
commit
25c0dffdc7
8 changed files with 39 additions and 9 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -6,6 +6,9 @@ php:
|
|||
- 5.6
|
||||
- 7.0
|
||||
|
||||
env:
|
||||
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: 7.0
|
||||
|
|
@ -13,17 +16,16 @@ matrix:
|
|||
env:
|
||||
global:
|
||||
- CURRENT_DIR=`pwd`
|
||||
matrix:
|
||||
- BACKEND=smbclient
|
||||
- BACKEND=libsmbclient
|
||||
|
||||
before_install:
|
||||
- pass=$(perl -e 'print crypt("test", "password")')
|
||||
- sudo useradd -m -p $pass test
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install samba smbclient libsmbclient-dev libsmbclient
|
||||
- wget -O /tmp/libsmbclient-php.zip https://github.com/eduardok/libsmbclient-php/archive/master.zip
|
||||
- unzip /tmp/libsmbclient-php.zip -d /tmp
|
||||
- cd /tmp/libsmbclient-php-master
|
||||
- phpize && ./configure && make && sudo make install
|
||||
- echo 'extension="libsmbclient.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||
- sudo apt-get install samba smbclient
|
||||
- if [ "$BACKEND" == 'libsmbclient' ]; then ./install_libsmbclient.sh; fi
|
||||
- cd $CURRENT_DIR
|
||||
- chmod go+w $HOME
|
||||
- printf "%s\n%s\n" test test|sudo smbpasswd -s test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue