From 3b8e757ba870e13b975c8c4ad13cfdb5757b93f6 Mon Sep 17 00:00:00 2001 From: sirkrypt0 <22522058+sirkrypt0@users.noreply.github.com> Date: Wed, 12 May 2021 16:27:17 +0200 Subject: [PATCH] Use make in CI --- .gitlab-ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adde71b..bcb4edc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ compile: variables: CGO_ENABLED: 0 script: - - go build -o poseidon + - make build artifacts: paths: - poseidon @@ -36,7 +36,7 @@ golangci-lint: needs: [] image: golangci/golangci-lint:latest script: - - golangci-lint run ./... --timeout=3m + - make golangci-lint golint: stage: lint @@ -49,11 +49,7 @@ test: stage: test needs: [] script: - - go test $(go list ./... | grep -v /e2e_tests) -v -coverprofile coverage.cov - # exclude Mock files from coverage report - - cat coverage.cov | grep -v _mock.go > coverage_cleaned.cov || true - - go tool cover -func=coverage_cleaned.cov - - go tool cover -html=coverage_cleaned.cov -o coverage_unit.html + - make coverhtml artifacts: paths: - coverage_unit.html @@ -124,8 +120,7 @@ test_e2e: # Start Poseidon and wait for it - ./poseidon & - sleep 20 - # Start tests - - go test ./e2e_tests -v + - make e2e-test .start_deployment: &start_deployment