forked from scrtlabs/SecretNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
88 lines (81 loc) · 2.77 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
trigger:
branches:
include:
- "*" # must quote since "*" is a YAML reserved character; we want a string
paths:
exclude:
- "*.md"
- "*.png"
- "docs/*"
- ".gitignore"
- "LICENSE"
pool:
name: "sgx scale set"
workspace:
clean: all # what to clean up before the job runs
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
Dockerfile: 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
Dockerfile: deployment/dockerfiles/base.Dockerfile
- task: Docker@2
displayName: "Build release image"
inputs:
command: build
repository: build-release
tags: latest
buildContext: .
arguments: --build-arg SGX_MODE=HW
Dockerfile: deployment/dockerfiles/release.Dockerfile
- task: Docker@2
displayName: "Build tests image"
inputs:
command: build
repository: tests-base-image
tags: latest
buildContext: .
arguments: --build-arg SGX_MODE=HW
Dockerfile: deployment/dockerfiles/go-tests.Dockerfile
- task: Docker@2
displayName: "Build node"
inputs:
command: build
repository: ci-enigma-sgx-node
tags: latest
buildContext: .
arguments: --build-arg SECRET_LOCAL_NODE_TYPE=NODE --build-arg SGX_MODE=HW
Dockerfile: 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_LOCAL_NODE_TYPE=BOOTSTRAP --build-arg SGX_MODE=HW
Dockerfile: deployment/dockerfiles/local-node.Dockerfile
- script: export DOCKER_CLIENT_TIMEOUT=120 && export COMPOSE_HTTP_TIMEOUT=120 && docker-compose --compatibility -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 --compatibility up --exit-code-from node aesm bootstrap node
displayName: "Run integration tests"
- script: docker-compose -f deployment/ci/docker-compose.ci.yaml --compatibility up --exit-code-from enclave-test aesm enclave-test
displayName: "Run enclave tests"
- script: docker-compose -f deployment/ci/docker-compose.ci.yaml --compatibility down
condition: always()
displayName: "Shutdown"