-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (55 loc) · 975 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
image: golang:1.15
cache:
paths:
- /apt-cache
- /go/src/github.com
- /go/src/golang.org
- /go/src/google.golang.org
- /go/src/gopkg.in
stages:
- test
- build
- deploy
unit_tests:
stage: test
before_script:
- echo $GOPATH
- chmod +x .sdlc/build
- chmod +x .sdlc/check
- ./.sdlc/build
script:
- ./.sdlc/check
dist-release:
stage: build
only:
- tags
dependencies:
- unit_tests
before_script:
- env
- apt-get update -y
- apt-get -y install zip curl
- chmod +x .sdlc/build-dist
#- chmod +x .sdlc/bintray
script:
- ./.sdlc/build-dist
#- ./.sdlc/bintray
artifacts:
untracked: true
paths:
- dist/*.zip
pages:
stage: deploy
only:
- tags
image: asciidoctor/docker-asciidoctor:1.3.0
dependencies:
- dist-release
before_script:
- chmod +x .sdlc/website
script:
- ./.sdlc/website
artifacts:
untracked: true
paths:
- dist/*.zip