2016-05-13 41 views
1

.travis.yml是:特拉維斯CI +轉到:不能建立

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 

而且it failed與此錯誤:

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. 

我已經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 

回答

1

看着https://github.com/weldpua2008/deployer ,它的根目錄下有一個deployer目錄。當您發出go build example/myproduct/deployer/deployer.go時,它會嘗試創建一個名爲deployer的文件,但因目錄已存在而失敗。