2016-05-13 20 views
1

Mein .travis.yml ist:Travis CI + Go: nicht bauen

language: go 
go: 
    - 1.5 
install: 
    - go get github.com/tools/godep 
    - godep restore 
branches: 
    only: 
    - master 
script: 
    - go build example/myproduct/deployer/deployer.go 
notifications: 
    email: false 

Und it failed mit diesem Fehler:

go build example/myproduct/deployer/deployer.go  
go install command-line-arguments: build output "deployer" already exists and is a directory  
The command "go build example/myproduct/deployer/deployer.go" exited with 1.  
Done. Your build exited with 1. 

Ich habe VagrantFile where it's ok:

go get github.com/tools/godep 
cd /opt/gopath/src/github.com/dorzheh/deployer 
godep restore 
ln -s /opt/gopath/src/github.com/dorzheh/deployer/example/myproduct/ /home/vagrant/example 
cd /home/vagrant/ 
go build /home/vagrant/example/deployer/deployer.go 

Antwort

1

bei https://github.com/weldpua2008/deployer Blick Es hat ein deployer Verzeichnis an der Wurzel. Wenn Sie go build example/myproduct/deployer/deployer.go ausgeben, versucht es eine Datei mit dem Namen deployer zu erstellen, schlägt jedoch fehl, da das Verzeichnis bereits existiert.