forked from git-ftp/git-ftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (23 loc) · 838 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
language: sh
install:
- sudo apt-get install -y vsftpd
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- echo write_enable=YES | sudo tee -a /etc/vsftpd.conf
- echo anon_upload_enable=YES | sudo tee -a /etc/vsftpd.conf
- echo anon_mkdir_write_enable=YES | sudo tee -a /etc/vsftpd.conf
- echo anon_umask=000 | sudo tee -a /etc/vsftpd.conf
- echo anon_other_write_enable=YES | sudo tee -a /etc/vsftpd.conf
- echo anon_root=/var/ftp | sudo tee -a /etc/vsftpd.conf
- sudo mkdir -p /var/ftp/pub
- sudo chmod a+rwx /var/ftp/pub
- sudo service vsftpd restart
- export GIT_FTP_ROOT=localhost/pub
- export GIT_FTP_USER=ftp
- export GIT_FTP_PASSWD=ftp
script:
- tests/git-ftp-test.sh
after_failure:
- ls -la /var/ftp/pub/*
- cat /etc/vsftpd.conf