forked from eduardok/libsmbclient-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 901 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: php
php:
- 5.6
- 7.2
- 7.4
compiler:
- clang
- gcc
before_install:
- pass=$(perl -e 'print crypt("password", "testuser")')
- sudo useradd -m -p "$pass" testuser
- sudo apt-get update -qq
- sudo apt-get install -qq libsmbclient-dev samba
- sudo bash tests/setup-share.sh
- |
echo "
[testshare]
comment = testshare
path = /home/testuser/testshare
guest ok = no
read only = no
map archive = yes
map system = yes
map hidden = yes
create mask = 0777
inherit permissions = yes
" | sudo tee -a /etc/samba/smb.conf
- sudo service smbd restart
- testparm -s
- ( echo password; echo password ) | sudo smbpasswd -s -a testuser
- wget https://phar.phpunit.de/phpunit-5.phar -O phpunit.phar
script:
- phpize
- ./configure
- make
- sudo make install
- php --define extension="smbclient.so" phpunit.phar --verbose