Test vsftpd also without EPSV and merge results
Inspired by bde1ebadf0/.travis.yml
This commit is contained in:
parent
e5b4ec1b0b
commit
6e2ab43b1f
11
.run-tests
Executable file
11
.run-tests
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
for cmds in NONE EPSV; do
|
||||
# configure vsftpd
|
||||
sudo cp $TRAVIS_BUILD_DIR/.vsftpd.conf /etc/vsftpd.conf
|
||||
echo cmds_denied=$cmds | sudo tee --append /etc/vsftpd.conf
|
||||
sudo service vsftpd restart
|
||||
|
||||
# run tests
|
||||
go test -v -coverprofile="$cmds.coverprofile"
|
||||
done
|
@ -5,10 +5,11 @@ 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 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/modocache/gover
|
||||
script:
|
||||
- $GOPATH/bin/goveralls -service=travis-ci
|
||||
- ./.run-tests
|
||||
- $HOME/gopath/bin/gover
|
||||
- $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci
|
||||
|
Loading…
Reference in New Issue
Block a user