.gitlab-ci.yml 610 Bytes
Newer Older
adphi's avatar
adphi committed
1
image: golang:1.12
2
3
4
5
6

stages:
- test

before_script:
Adphi's avatar
Adphi committed
7
8
9
- mkdir -p /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
- cp -r $CI_PROJECT_DIR /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
- cd /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
10
11
12
13
14
15
16
17
18
- make dep

unit_tests:
  stage: test
  tags:
  - docker
  script:
  - make test

Adphi's avatar
Adphi committed
19
20
21
22
23
24
race_detector:
  stage: test
  tags:
  - docker
  script:
  - make race
25
26
27
28
29
30
31
32
33
34
35
36
37

code_coverage:
  stage: test
  tags:
  - docker
  script:
  - make coverage

lint_code:
  stage: test
  tags:
  - docker
  script:
adphi's avatar
adphi committed
38
  - go get -u golang.org/x/lint/golint
adphi's avatar
adphi committed
39
  - make lint