I can’t get Travis to work for my Go project, I use the following configuration file:
language: go
go:
- master
go_import_path:
- github.com/metonimie/simpleFTP
install:
# - go get -t -v ./...
- go get -t -v github.com/fsnotify/fsnotify
- go get -t -v github.com/spf13/viper
- go get -t -v github.com/hashicorp/hcl
- go get -t -v github.com/magiconair/properties
- go get -t -v github.com/mitchellh/mapstructure
- go get -t -v github.com/pelletier/go-toml
- go get -t -v github.com/spf13/afero
script:
- go test ./...
- go test -v -race ./...
- go vet ./...
Error:
server/simplFTP.go:9:2: cannot find package "github.com/metonimie/simpleFTP/server/server" in any of:
/home/travis/.gimme/versions/go/src/github.com/metonimie/simpleFTP/server/server (from $GOROOT)
/home/travis/gopath/src/github.com/metonimie/simpleFTP/server/server (from $GOPATH)
server/server/connection.go:20:2: cannot find package "github.com/metonimie/simpleFTP/server/server/config" in any of:
/home/travis/.gimme/versions/go/src/github.com/metonimie/simpleFTP/server/server/config (from $GOROOT)
/home/travis/gopath/src/github.com/metonimie/simpleFTP/server/server/config (from $GOPATH)
server/server/commands.go:14:2: cannot find package "github.com/zyxar/image2ascii/ascii" in any of:
/home/travis/.gimme/versions/go/src/github.com/zyxar/image2ascii/ascii (from $GOROOT)
/home/travis/gopath/src/github.com/zyxar/image2ascii/ascii (from $GOPATH)
I have no idea how to fix the first two import issues, since they are my project.