You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

57 lines
1.2 KiB

os:
- linux
- osx
env:
- LFTP_SUPPORT=0
jobs:
include:
- os: linux
env: LFTP_SUPPORT=1
addons:
apt:
packages:
- lftp
- os: osx
env: LFTP_SUPPORT=1
addons:
homebrew:
packages:
- lftp
language: sh
install:
- >
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
./tests/vsftpd-3.0.3.debian7 tests/vsftpd.conf &
fi
- >
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
./tests/vsftpd-3.0.3.el_capitan tests/vsftpd.conf &
fi
before_script:
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- export GIT_FTP_HOST=localhost
- export GIT_FTP_PORT=:2121
- export GIT_FTP_ROOT=pub
- export GIT_FTP_USER=ftp
- export GIT_FTP_PASSWD="git-ftp@example.org"
- echo "$GIT_FTP_PASSWD" > /tmp/vsftpd.email_passwords
#- export TEST_CASES="test_inits test_push_nothing test_file_with_unicode"
script:
- tests/git-ftp-test.sh
- >
if grep -H -n -C 1 '^ ' "git-ftp" "tests/git-ftp-test.sh"; then
echo 'Lines starting with spaces instead of tabs found!'
false
fi
after_failure:
- cat /tmp/vsftpd.log
- ls -la /tmp
- ls -la /tmp/pub/*