forked from git-ftp/git-ftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (50 loc) · 1.19 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 "[email protected]"
- 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="[email protected]"
- 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/*