forked from jlaffaye/ftp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jlaffaye/master
Test PR
- Loading branch information
Showing
10 changed files
with
543 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
language: go | ||
dist: trusty | ||
sudo: required | ||
go: | ||
- 1.7.3 | ||
- 1.7.5 | ||
- 1.8.1 | ||
env: | ||
- FTP_SERVER=vsftpd | ||
- FTP_SERVER=proftpd | ||
before_install: | ||
- sudo mkdir --mode 0777 -p /var/ftp/incoming | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq vsftpd | ||
- sudo cp $TRAVIS_BUILD_DIR/.vsftpd.conf /etc/vsftpd.conf | ||
- sudo service vsftpd restart | ||
- sudo $TRAVIS_BUILD_DIR/.travis/prepare.sh "$FTP_SERVER" | ||
- sudo sysctl net.ipv6.conf.lo.disable_ipv6=0 | ||
- go get github.com/axw/gocov/gocov | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/golang/lint/golint | ||
script: | ||
- $GOPATH/bin/goveralls -service=travis-ci | ||
- goveralls -v | ||
- golint -set_exit_status $(go list ./...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh -e | ||
|
||
case "$1" in | ||
proftpd) | ||
mkdir -p /etc/proftpd/conf.d/ | ||
cp $TRAVIS_BUILD_DIR/.travis/proftpd.conf /etc/proftpd/conf.d/ | ||
;; | ||
vsftpd) | ||
cp $TRAVIS_BUILD_DIR/.travis/vsftpd.conf /etc/vsftpd.conf | ||
;; | ||
*) | ||
echo "unknown software: $1" | ||
exit 1 | ||
esac | ||
|
||
mkdir --mode 0777 -p /var/ftp/incoming | ||
|
||
apt-get install -qq "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Anonymous /var/ftp> | ||
User ftp | ||
Group nogroup | ||
MaxClients 2 | ||
# We want clients to be able to login with "anonymous" as well as "ftp" | ||
UserAlias anonymous ftp | ||
|
||
RequireValidShell off | ||
</Anonymous> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.