diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..9c673b4 --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,17 @@ +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 ./... \ No newline at end of file