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 42 43 44 45
|
os:
- linux
- osx
env:
- LFTP_SUPPORT=0
- LFTP_SUPPORT=1
language: sh
install:
- >
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
./tests/vsftpd-3.0.3.debian7 tests/vsftpd.conf &
if [ "$LFTP_SUPPORT" = "1" ]; then sudo apt-get install -y lftp; fi
fi
- >
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
./tests/vsftpd-3.0.3.el_capitan tests/vsftpd.conf &
if [ "$LFTP_SUPPORT" = "1" ]; then sudo installer -pkg tests/lftp-4.6.0-0.pkg -target /; fi
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/*
|