-
Notifications
You must be signed in to change notification settings - Fork 9
/
bitbucket-pipelines.yml
57 lines (52 loc) · 1.59 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
53
54
55
56
57
clone:
depth: 1
options:
docker: true
definitions:
services:
docker:
memory: 2048
pipelines:
default:
- parallel:
# build go app
- step:
name: go-test
# As https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0 potentially introduced an error
# when running make, we pin the version to the previous one until the issue is resolved
# @TODO: Monitor the progress on alpine and upgrade when necessary
image: golang:1.15-alpine3.13
script:
- |
export CGO_ENABLED=0
export GOOS=linux
export GOARCH=amd64
- apk update && apk add git make bash curl
- |
echo ${OZONE_CONFIG} | base64 -d > config/config-ozone-run_test.json
- make init
- make devtools
- make build
- make test
# lint and test the Vue.js app
- step:
name: web-lint-test
image: node:dubnium-alpine
# caches:
# - cache-web
script:
- |
export FORCE_COLOR=1
export NODE_DISABLE_COLORS=0
- cd web/
- yarn install --frozen-lockfile --non-interactive
- yarn lint --no-fix
- yarn test:unit:coverage
# build docker image
- step:
name: docker-image-build
caches:
- docker
script:
- make build_image
- docker images