forked from w3f/polkadot-validator-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
109 lines (101 loc) · 2.55 KB
/
config.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
ansibleIntegrationTest: &ansibleIntegrationTest
docker:
- image: web3f/secure-validator-ci:v1.1.1
steps:
- checkout
- setup_remote_docker
- run:
description: execute molecule tests for the ansible role at $ROLE_PATH
command: |
cd $ROLE_PATH
molecule test
version: 2
jobs:
unitTests:
docker:
- image: web3f/node:v0.1.0
steps:
- checkout
- run: yarn
- run:
name: Run tests
command: |
yarn test
polkadotValidatorIntegrationTest:
environment:
ROLE_PATH: ansible/roles/polkadot-validator
<<: *ansibleIntegrationTest
nodeExporterIntegrationTest:
environment:
ROLE_PATH: ansible/roles/node-exporter
<<: *ansibleIntegrationTest
updateBinaryIntegrationTest:
environment:
ROLE_PATH: ansible/roles/polkadot-update-binary
<<: *ansibleIntegrationTest
integrationTest:
docker:
- image: web3f/secure-validator-ci:v1.1.1
steps:
- checkout
- run:
name: Copy credentials
command: echo $GOOGLE_APPLICATION_CREDENTIALS_CONTENT > $(pwd)/credentials.json
- run:
name: Yarn install
command: yarn
- run:
name: integrationTest
command: ./scripts/integrationTest.sh
publishPackage:
docker:
- image: web3f/node:v0.1.0
steps:
- checkout
- run:
name: Publish package
command: npm publish --userconfig=.npmrc-auth
workflows:
version: 2
test-deploy:
jobs:
- unitTests:
filters:
tags:
only: /.*/
- polkadotValidatorIntegrationTest:
filters:
tags:
only: /.*/
requires:
- unitTests
- nodeExporterIntegrationTest:
filters:
tags:
only: /.*/
requires:
- unitTests
- updateBinaryIntegrationTest:
filters:
tags:
only: /.*/
requires:
- unitTests
- integrationTest:
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
requires:
- polkadotValidatorIntegrationTest
- nodeExporterIntegrationTest
- updateBinaryIntegrationTest
- publishPackage:
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
requires:
- integrationTest