Skip to content

Commit

Permalink
fix(ci): Build gopath correctly in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjwarren committed Aug 22, 2018
1 parent 6268bc8 commit d44ba6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion {{cookiecutter.name}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ test:
image: golang:{{cookiecutter.go}}-alpine
script:
- apk update && apk add make build-base git
- mkdir -p $GOPATH/src; ln -s $CI_PROJECT_DIR $GOPATH/$SRC; cd $GOPATH/$SRC
- mkdir -p $GOPATH/$(echo $SRC | rev | cut -d'/' -f2- | rev) # mk src directory tree minus last path
- ln -s $CI_PROJECT_DIR $GOPATH/$SRC; cd $GOPATH/$SRC
- make test

0 comments on commit d44ba6d

Please sign in to comment.