run travis on ubuntu 14.04

This commit is contained in:
Robin Appelman 2016-12-08 15:37:23 +01:00
commit 259dc04f74
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,5 @@
dist: trusty
sudo: required
language: php
php:
- 5.4
@ -5,6 +7,14 @@ php:
- 5.6
- 7.0
addons:
apt:
packages:
- samba
- smbclient
- libsmbclient-dev
- libsmbclient
env:
global:
- CURRENT_DIR=`pwd`
@ -15,12 +25,10 @@ env:
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
- 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
- printf "%s\n%s\n" test test|sudo smbpasswd -a -s test
- sudo mkdir /home/test/test
- sudo chown test /home/test/test
- |

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
sudo apt-get install 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