From fb6e9d1258cf9a3ed4596452e588dc2459f719c4 Mon Sep 17 00:00:00 2001 From: Simon Stone Date: Wed, 25 Mar 2020 11:56:05 +0000 Subject: [PATCH] Add missing flake8 dependency (contributes to #69) (#101) Signed-off-by: Simon Stone --- azure-pipelines.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a22efc0d..2eb99bcb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,7 +16,7 @@ steps: inputs: versionSpec: "3.x" displayName: Use Python 3.x - - script: pip install ansible ansible-lint yamllint yq + - script: pip install ansible ansible-lint flake8 yamllint yq displayName: Install Python dependencies - script: | set -ex @@ -30,17 +30,22 @@ steps: sudo tar xvf fabric-ca-bins.tar.gz -C /usr/local rm fabric-ca-bins.tar.gz displayName: Download Fabric CA CLI + - script: | + set -ex + ansible-galaxy collection build + displayName: Build collection artifact + - script: | + set -ex + VERSION=$(yq -r .version galaxy.yml) + ansible-galaxy collection install ibm-blockchain_platform-${VERSION}.tar.gz + displayName: Install collection - script: | set -ex flake8 . ansible-lint . for ROLE in roles/*; do ansible-lint ${ROLE}; done yamllint . - displayName: Lint - - script: | - set -ex - ansible-galaxy collection build - displayName: Build collection artifact + displayName: Lint collection - script: | set -ex VERSION=$(yq -r .version galaxy.yml)