This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
/
.drone.yml
139 lines (123 loc) · 2.92 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
image: cryptocom/chain-test:latest
pull: if-not-exists
commands:
- export CARGO_HOME=$PWD/drone/cargo
- export CARGO_TARGET_DIR=$PWD/drone/target
- export PATH=$CARGO_HOME/bin:$PATH
- export CERTIFICATE_EXPIRATION_SECS=200
- ./docker/build.sh
- name: unit-tests
image: cryptocom/chain-test:latest
pull: if-not-exists
commands:
- export CARGO_HOME=$PWD/drone/cargo
- export CARGO_TARGET_DIR=$PWD/drone/target
- export CRYPTO_CHAIN_ENABLE_SANITY_CHECKS=1
- cargo test
- name: integration-tests
image: cryptocom/chain-test:latest
pull: if-not-exists
privileged: true
volumes:
- name: isgx
path: /dev/isgx
environment:
SPID:
from_secret: SPID
IAS_API_KEY:
from_secret: IAS_API_KEY
commands:
- export CARGO_HOME=$PWD/drone/cargo
- export CARGO_TARGET_DIR=$PWD/drone/target
- export PATH=$CARGO_HOME/bin:$PATH
- export PYTHON_VENV_DIR=$PWD/drone/venv
- export CRYPTO_CHAIN_ENABLE_SANITY_CHECKS=1
- LD_LIBRARY_PATH=/opt/intel/sgx-aesm-service/aesm /opt/intel/sgx-aesm-service/aesm/aesm_service --no-daemon &
- ./integration-tests/run.sh
- name: multinode-tests
image: cryptocom/chain-test:latest
pull: if-not-exists
privileged: true
volumes:
- name: isgx
path: /dev/isgx
environment:
SPID:
from_secret: SPID
IAS_API_KEY:
from_secret: IAS_API_KEY
commands:
- export CARGO_HOME=$PWD/drone/cargo
- export CARGO_TARGET_DIR=$PWD/drone/target
- export PATH=$CARGO_HOME/bin:$PATH
- export PYTHON_VENV_DIR=$PWD/drone/venv
- export CRYPTO_CHAIN_ENABLE_SANITY_CHECKS=1
- LD_LIBRARY_PATH=/opt/intel/sgx-aesm-service/aesm /opt/intel/sgx-aesm-service/aesm/aesm_service --no-daemon &
- ./integration-tests/run_multinode.sh
- name: sgx-test
image: cryptocom/chain-test:latest
pull: if-not-exists
privileged: true
volumes:
- name: isgx
path: /dev/isgx
environment:
RUST_LOG: debug
commands:
- export CARGO_HOME=$PWD/drone/cargo
- export CARGO_TARGET_DIR=$PWD/drone/target
- export PATH=$CARGO_HOME/bin:$PATH
- LD_LIBRARY_PATH=/opt/intel/sgx-aesm-service/aesm /opt/intel/sgx-aesm-service/aesm/aesm_service --no-daemon &
- ./docker/sgx_test.sh
- name: teardown
image: cryptocom/chain-test:latest
pull: if-not-exists
commands:
- ./integration-tests/cleanup.sh
when:
status:
- success
- failure
volumes:
- name: isgx
host:
path: /dev/isgx
trigger:
branch:
- main
- staging
- trying
event:
- push
---
kind: pipeline
name: fuzzer
platform:
os: linux
arch: amd64
steps:
- name: build
image: cryptocom/fuzzer:latest
pull: if-not-exists
environment:
FUZZIT_API_KEY:
from_secret: FUZZIT_API_KEY
commands:
- ./ci-scripts/fuzzit.sh
trigger:
branch:
- main
event:
- push
---
kind: signature
hmac: d60bc90fe363b4bb6070b40f21b9dfd8502acdcd5e8bc8c72d8e909710d79621
...