forked from deltav-deltaverse/deltasearch
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
26 lines (21 loc) · 872 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
include:
- template: Auto-DevOps.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
variables:
DAST_DISABLED: "true"
AUTO_DEVOPS_BUILD_CACHE: "registry"
AUTO_BUILD_IMAGE_VERSION: "v1.6.0"
AUTO_DEVOPS_BUILD_CACHE_REF: "$CI_REGISTRY_IMAGE/cache:latest"
CC_TEST_REPORTER_ID: "8682688bc269d0f558949836dc3a7da18cd504940d6a4034c4539203dbe3fa22"
test:
stage: test
image: golang:1.16-alpine
before_script:
# Install CodeClimate test reporter
- apk add --no-cache curl git gcc musl-dev
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- go test -v -race -coverprofile c.out ./...
after_script:
- ./cc-test-reporter after-build