From ec9cba9b2f0bbac7122e6524e7bc6db7eb01cc31 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Tue, 6 Nov 2018 00:52:45 +0100 Subject: [PATCH] try gitlab-ci --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2e578d0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +image: golang:latest +stages: + - build + - test + +before_script: + - mkdir -p /go/src/git.sum7.eu/genofire/ + - cp -R /builds/genofire/logmania /go/src/git.sum7.eu/genofire/logmania + - cd /go/src/git.sum7.eu/genofire/logmania + - go get -d -t + +build-my-project: + stage: build + script: + - go install git.sum7.eu/genofire/logmania + artifacts: + paths: + - /go/bin/logmania + +test-my-project: + stage: test + script: + - ./.circleci/check-gofmt + - ./.circleci/check-testfiles + - go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt + +test-race-my-project: + stage: test + script: + - go test -race ./...