From 69f52816aa8e19b4e25217bbfa6ac6e0022c8255 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Wed, 4 Sep 2019 09:28:14 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a63e0962..62a58a38 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,18 +10,24 @@ pool: vmImage: 'ubuntu-latest' steps: -- script: sudo apt-get update -qq -- script: sudo apt-get build-dep -qq cppcheck +- bash: | + sudo apt-get update -qq + sudo apt-get build-dep -qq cppcheck + continueOnError: true + displayName: 'Installing deps' +- bash: | + git clone --depth=10 https://github.com/noisymime/speeduino /noisymime/speeduino + git clone --depth=10 https://github.com/noisymime/cppcheck.git noisymime/cppcheck_github displayName: 'Cloning repos' -- script: git clone --depth=10 https://github.com/noisymime/speeduino /noisymime/speeduino -- script: git clone --depth=10 https://github.com/noisymime/cppcheck.git noisymime/cppcheck_github +- bash: | + cd noisymime/cppcheck_github + make + cd ../ displayName: 'Building cppcheck' -- script: cd noisymime/cppcheck_github -- script: make -- script: cd ../ +- bash: | + chmod +x speeduino/misra/check_misra_github.sh + speeduino/misra/check_misra_github.sh displayName: 'Running Scan' -- script: chmod +x speeduino/misra/check_misra_github.sh -- script: speeduino/misra/check_misra_github.sh # Publish test results to Azure Pipelines - task: PublishTestResults@2