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 STM32驱动继电器
    • ¥15 Windows server update services
    • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
    • ¥15 模糊pid与pid仿真结果几乎一样
    • ¥15 java的GUI的运用
    • ¥15 Web.config连不上数据库
    • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
    • ¥15 怎么配置广告联盟瀑布流
    • ¥15 Rstudio 保存代码闪退
    • ¥20 win系统的PYQT程序生成的数据如何放入云服务器阿里云window版?