Travis CI + Go:无法构建

我的.travis.yml是:


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

而且它没有与此错误:


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 可以的:


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


凤凰求蛊
浏览 147回答 1
1回答

摇曳的蔷薇

查看https://github.com/weldpua2008/deployer,它确实deployer在根目录下有一个目录。当您发出时,go build  example/myproduct/deployer/deployer.go它会尝试创建一个名为deployer但失败的文件,因为该目录已经存在。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Go