forked from OpenBankingUK/conformance-dcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
52 lines (46 loc) · 1.23 KB
/
bitbucket-pipelines.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
clone:
depth: 1
options:
docker: true
definitions:
services:
docker:
memory: 2048
pipelines:
default:
- parallel:
- step:
name: go-test
image: golang:1.13.6-alpine
script:
- |
export CGO_ENABLED=0
export GOOS=linux
export GOARCH=amd64
- apk update && apk add git make bash curl
- make tools
- make build
- make test
- make lint
- step:
name: code-coverage
image: golang:1.13.6-alpine
script:
- export CGO_ENABLED=0
- apk update && apk add git make bash
- make code-coverage
- step:
name: e2e
image: golang:1.13.6-alpine
script:
- export CGO_ENABLED=0
- apk update && apk add git make bash
- mkdir configs
- echo ${OZONE_CONFIG} | base64 -d > configs/config.json
- make e2e
# build docker image
- step:
name: docker-image-build
script:
- make build_image IMAGE_TAG=latest
- docker images