Golang gitlab-ci.yml build not working

RB

Bullding a Golang Container

Rodney · 3 hours ago

I am getting a syntax error Error: jobs:test:before_script config should be an array of strings

variables:
PACKAGE_PATH: /Users/rodneybizzell/go/src/github.com/rbizzell40/gitlab-ci

stages:

  • dep
  • test
  • build

.anchors: &inject-gopath

  • |
    mkdir -p ({PACKAGE_PATH})
    && ln -s {CI_PROJECT_DIR} {PACKAGE_PATH}
    && cd ${PACKAGE_PATH}
    dep:
    stage: dep
    image: golang:1.10-alpjine3.7
    before_script:

test:
stage:
dependencies:
- dep
image: golang:1.10-alpine3.7
before_script:
- *inject-gopath
script:
- go test ./…
build:
stage: build
dependencies:
- dep
image: docker:17
services:
- docker:dind
script:
- docker build -t app .

Any help would be appreciated.