forked from cortezaproject/corteza
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
69 lines (60 loc) · 1.75 KB
/
.drone.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
61
62
63
64
65
66
67
68
69
kind: pipeline
name: Build
type: docker
steps:
- name: "Quality Control"
image: cortezaproject/corteza-server-builder:1.16
pull: always
commands:
- make test.unit
- name: "Build release (tag)"
image: cortezaproject/corteza-server-builder:1.16
environment:
RELEASE_SFTP_KEY: { from_secret: RELEASE_SFTP_KEY }
RELEASE_SFTP_URI: { from_secret: RELEASE_SFTP_URI }
commands:
- make release-clean release BUILD_OS=linux BUILD_ARCH=amd64 BUILD_VERSION=${DRONE_TAG}
# - make release-clean release BUILD_OS=darwin BUILD_ARCH=amd64 BUILD_VERSION=${DRONE_TAG}
# - make release-clean release BUILD_OS=windows BUILD_ARCH=amd64 BUILD_VERSION=${DRONE_TAG}
- make upload
when:
event: [ tag ]
ref:
- refs/tags/20??.3.*
- refs/tags/20??.6.*
- refs/tags/20??.9.*
- refs/tags/20??.12.*
---
kind: pipeline
name: Integration
type: docker
steps:
- name: test
image: cortezaproject/corteza-server-builder:1.16
pull: always
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: "1"
GOOS: linux
GOARCH: amd64
CI: circleci
# Corteza basics
AUTH_OIDC_ENABLED: "0"
AUTH_JWT_SECRET: FBjddkvwQib0d4usifnEGVr1bncuVeD7
CORREDOR_CLIENT_CERTIFICATES_ENABLED: "false"
CORREDOR_ENABLED: "false"
# Storage backends
DB_DSN: sqlite3://file::memory:?cache=shared&mode=memory
# for now, we only run Store tests with SQLite
RDBMS_SQLITE_DSN: sqlite3://file::memory:?cache=shared&mode=memory
commands:
- make test.coverprofile.all
- name: coverage
image: plugins/codecov
settings:
token: 628a7104-4ec8-46ef-a3a8-50b0c2507082
files:
- .cover.out
trigger:
event:
exclude: [ pull_request ]