forked from tary/go-service-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
41 lines (32 loc) · 819 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
before_script:
- export PATH=$PATH:/usr/local/go/bin
- export GOPROXY=https://goproxy.io
- export GOPATH=~/go
- export GOBIN=~/go/bin
stages:
- test
- build
- goreport
unit_tests:
stage: test
script:
- bash -c 'echo $CI_PROJECT_DIR && cd $CI_PROJECT_DIR && ./ci.sh test'
race_detector:
stage: test
script:
- bash -c 'echo $CI_PROJECT_DIR && cd $CI_PROJECT_DIR && ./ci.sh race'
code_coverage:
stage: test
script:
- bash -c 'echo $CI_PROJECT_DIR && cd $CI_PROJECT_DIR && ./ci.sh coverage'
code_lint:
stage: test
script:
- bash -c 'echo $CI_PROJECT_DIR && cd $CI_PROJECT_DIR && ./ci.sh lint'
build:
stage: build
script:
- bash -c 'echo $CI_PROJECT_DIR && cd $CI_PROJECT_DIR && ./ci.sh build'
stage: goreport
script:
- bash -c 'echo success'