image: golang:1.11.1

stages:
  - test

before_script:
  - mkdir -p ${GOPATH}/src/gitlab.com/pztrn/
  - ln -s $CI_PROJECT_DIR ${GOPATH}/src/gitlab.com/pztrn/flagger
  - cd ${GOPATH}/src/gitlab.com/pztrn/flagger

test:
  stage: test
  tags:
    - docker
  script:
    - pwd
    - go test -test.v -cover ./...