Add Travis CI

This commit is contained in:
Julian Kornberger
2015-08-18 19:34:22 +02:00
parent e6587b1638
commit 77206a0866
4 changed files with 30 additions and 1 deletions

View File

@@ -32,6 +32,11 @@ func TestConn(t *testing.T) {
t.Error(err)
}
err = c.ChangeDir("incoming")
if err != nil {
t.Error(err)
}
data := bytes.NewBufferString(testData)
err = c.Stor("test", data)
if err != nil {
@@ -88,7 +93,7 @@ func TestConn(t *testing.T) {
if err != nil {
t.Error(err)
} else {
if dir != "/"+testDir {
if dir != "/incoming/"+testDir {
t.Error("Wrong dir: " + dir)
}
}