dpy15285 2017-03-08 14:26
浏览 485

命令“ git config remote.origin.url” $ {_ old_remote%.git}“”失败,并在运行期间以255退出

Even though it compiles and runs perfectly in my machine, has no problems uploading it to github, when I try to use travis-CI (for the first time) shows the following error: (I only have 2 external dependecies gorilla/mux and gorilla/context, which I obtained from "go get")

$ export GOPATH=$HOME/gopath
$ export PATH=$HOME/gopath/bin:$PATH
$ mkdir -p $HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]
$ rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]/
$ export TRAVIS_BUILD_DIR=$HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]
/home/travis/build.sh: line 62: export: `github.com/gorilla/context]': not a valid identifier
$ cd $HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]
error: could not lock config file .git/config: No such file or directory
The command "git config remote.origin.url "${_old_remote%.git}"" failed and exited with 255 during .
Your build has been stopped.

.travis.yml:

language: go
go:
  - 1.6.x
go_import_path:
  - github.com/gorilla/mux
  - github.com/gorilla/context
install:
  - github.com/gorilla/mux
  - github.com/gorilla/context
script:
  - go test -v ./...

I modified the .travis.yml file several times and I have no idea what is wrong/missing.

I have the default config file at ProjectName/.git/config

I also have the GO recommended directory set up GOPATH/src/github.com/User/ProjectName/

Any idea what I am doing wrong?

Thank you

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
    • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
    • ¥15 gdf格式的脑电数据如何处理matlab
    • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
    • ¥100 监控抖音用户作品更新可以微信公众号提醒
    • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
    • ¥70 2048小游戏毕设项目
    • ¥20 mysql架构,按照姓名分表
    • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题