mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
add travis.yml
This commit is contained in:
parent
d18b9db9c0
commit
bd537cd222
1 changed files with 40 additions and 0 deletions
40
.travis.yml
Normal file
40
.travis.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
language: php
|
||||||
|
php:
|
||||||
|
- 5.5
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- CURRENT_DIR=`pwd`
|
||||||
|
|
||||||
|
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/086409c349fad9a420f6fcf65b11c9841b07e821.zip
|
||||||
|
- unzip /tmp/libsmbclient-php.zip -d /tmp
|
||||||
|
- cd /tmp/libsmbclient-php-086409c349fad9a420f6fcf65b11c9841b07e821
|
||||||
|
- phpize && ./configure && make && sudo make install
|
||||||
|
- echo 'extension="libsmbclient.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
|
- cd $CURRENT_DIR
|
||||||
|
- chmod go+w $HOME
|
||||||
|
- printf "%s\n%s\n" test test|sudo smbpasswd -s test
|
||||||
|
- sudo mkdir /home/test/test
|
||||||
|
- sudo chown test /home/test/test
|
||||||
|
- |
|
||||||
|
echo "[test]
|
||||||
|
comment = test
|
||||||
|
path = /home/test
|
||||||
|
guest ok = yes
|
||||||
|
writeable = yes
|
||||||
|
inherit permissions = yes" | sudo tee -a /etc/samba/smb.conf
|
||||||
|
- sudo service smbd restart
|
||||||
|
- testparm -s
|
||||||
|
|
||||||
|
install:
|
||||||
|
- composer install
|
||||||
|
|
||||||
|
script:
|
||||||
|
# Run phpunit tests
|
||||||
|
- cd tests
|
||||||
|
- phpunit --configuration phpunit.xml
|
||||||
Loading…
Add table
Add a link
Reference in a new issue