From 1fb91cb8fa4c0876471112ad70eaf6e986b57dda Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Fri, 14 Dec 2018 23:52:28 +0100 Subject: [PATCH] add gitlab-ci --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4e2ef00 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +image: golang:latest +stages: + - build + - test + +before_script: + - mkdir -p /go/src/git.sum7.eu/genofire/ + - cp -R /builds/genofire/yaja /go/src/git.sum7.eu/genofire/yaja + - cd /go/src/git.sum7.eu/genofire/yaja + - go get -d -t ./... + +build-my-project: + stage: build + script: + - go install git.sum7.eu/genofire/yaja + artifacts: + paths: + - /go/bin/yaja + +test-my-project: + stage: test + script: + - ./.ci/check-gofmt + - ./.ci/check-testfiles + - ./.ci/check-misspell + - go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt + artifacts: + paths: + - .testCoverage.txt + +test-race-my-project: + stage: test + script: + - go test -race ./...