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