From 91130c8116f50898b4aa562d51b4c460d0e97c55 Mon Sep 17 00:00:00 2001 From: Adrian Rudnik Date: Fri, 5 Apr 2019 05:28:33 +0200 Subject: [PATCH] enabled gitlab ci --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..56165b6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: golang:latest + +stages: + - test + - build + +test: + stage: test + script: + - go vet -mod=vendor ./... + - go test -mod=vendor -cover -race ./... + +compile: + stage: build + script: + - go build -mod=vendor -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/uritool + artifacts: + paths: + - uritool