This repository has been archived by the owner on Jan 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
55 lines (51 loc) · 2.28 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
#
# SPDX-License-Identifier: Apache-2.0
#
---
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
FABRIC_CFG_PATH: /usr/local/config
steps:
- script: sudo apt-get update && sudo apt-get install -y moreutils
displayName: Install Ubuntu dependencies
- task: UsePythonVersion@0
inputs:
versionSpec: "3.x"
displayName: Use Python 3.x
- script: pip install ansible docker
displayName: Install Python dependencies
- script: |
set -ex
mvn dependency:get -DremoteRepositories=https://nexus.hyperledger.org/content/repositories/snapshots -Dartifact=org.hyperledger.fabric:hyperledger-fabric-1.4.4-stable:linux-amd64.1.4.4-stable-SNAPSHOT:tar.gz
mvn dependency:copy -Dartifact=org.hyperledger.fabric:hyperledger-fabric-1.4.4-stable:linux-amd64.1.4.4-stable-SNAPSHOT:tar.gz -DoutputDirectory=/tmp
cd /usr/local
sudo tar xzvf /tmp/hyperledger-fabric-1.4.4-stable-linux-amd64.1.4.4-stable-SNAPSHOT.tar.gz
displayName: Download Fabric CLI
- script: |
set -ex
mvn dependency:get -DremoteRepositories=https://nexus.hyperledger.org/content/repositories/snapshots -Dartifact=org.hyperledger.fabric-ca:hyperledger-fabric-ca-1.4.4-stable:linux-amd64.1.4.4-stable-SNAPSHOT:tar.gz
mvn dependency:copy -Dartifact=org.hyperledger.fabric-ca:hyperledger-fabric-ca-1.4.4-stable:linux-amd64.1.4.4-stable-SNAPSHOT:tar.gz -DoutputDirectory=/tmp
cd /usr/local
sudo tar xzvf /tmp/hyperledger-fabric-ca-1.4.4-stable-linux-amd64.1.4.4-stable-SNAPSHOT.tar.gz
displayName: Download Fabric CA CLI
- script: ansible-galaxy install -r requirements.yml --force
workingDirectory: one-org-network
displayName: Install Playbook dependencies (one-org-network)
- script: |
set -ex
ansible-playbook playbook.yml
ansible-playbook --extra-vars state=absent playbook.yml
workingDirectory: one-org-network
displayName: Run Playbook (one-org-network)
- script: ansible-galaxy install -r requirements.yml --force
workingDirectory: two-org-network
displayName: Install Playbook dependencies (two-org-network)
- script: |
set -ex
ansible-playbook playbook.yml
ansible-playbook --extra-vars state=absent playbook.yml
workingDirectory: two-org-network
displayName: Run Playbook (two-org-network)