Test vsftpd also without EPSV and merge results

Inspired by bde1ebadf0/.travis.yml
This commit is contained in:
Julian Kornberger
2016-02-27 17:54:07 +01:00
parent e5b4ec1b0b
commit 6e2ab43b1f
2 changed files with 15 additions and 3 deletions

11
.run-tests Executable file
View 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