forked from scrtlabs/SecretNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
70 lines (61 loc) · 2.08 KB
/
azure-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
58
59
60
61
62
63
64
65
66
67
68
69
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
paths:
exclude:
- '*.md'
- '*.png'
- 'docs/*'
- '.gitignore'
- 'LICENSE'
pool:
name: 'default'
steps:
- script: echo $(spid) > spid.txt; echo $(api-key-dev) > api_key.txt
displayName: 'Save api keys'
- task: Docker@2
displayName: 'Build enclave tests'
inputs:
command: build
repository: rust-enclave-test
tags: latest
buildContext: .
arguments: --build-arg SGX_MODE=HW -f deployment/dockerfiles/enclave-test.Dockerfile
- task: Docker@2
displayName: 'Build base image'
inputs:
command: build
repository: rust-go-base-image
tags: latest
buildContext: .
arguments: --build-arg SGX_MODE=HW -f deployment/dockerfiles/base.Dockerfile
- task: Docker@2
displayName: 'Build node'
inputs:
command: build
repository: ci-enigma-sgx-node
tags: latest
buildContext: .
arguments: --build-arg SECRET_NODE_TYPE=NODE --build-arg SGX_MODE=HW -f deployment/dockerfiles/local-node.Dockerfile
- task: Docker@2
displayName: 'Build bootstrap'
inputs:
command: build
buildContext: .
repository: ci-enigma-sgx-bootstrap
tags: latest
arguments: --build-arg SECRET_NODE_TYPE=BOOTSTRAP --build-arg SGX_MODE=HW -f deployment/dockerfiles/local-node.Dockerfile
- script: docker-compose -f deployment/ci/docker-compose.ci.yaml up --exit-code-from base aesm base
displayName: 'Run system tests'
- script: docker-compose -f deployment/ci/docker-compose.ci.yaml up --exit-code-from node aesm bootstrap node
displayName: 'Run integration tests'
- script: docker-compose -f deployment/ci/docker-compose.ci.yaml up --exit-code-from enclave-test aesm enclave-test
displayName: 'Run enclave tests'
- script: docker-compose -f deployment/ci/docker-compose.ci.yaml down
condition: always()
displayName: 'Shutdown'