Skip to content

Commit

Permalink
ci: update azure-pipelines.yml
Browse files Browse the repository at this point in the history
Integrate EVAL-ADICUP360 with Azure-Pipelines.
Build jobs:
	- static analysis
	- code style check

Signed-off-by: Antoniu Miclaus <[email protected]>
  • Loading branch information
amiclaus committed Feb 15, 2021
1 parent 65fb12e commit 615a6a4
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- main
- master
- staging/*
- dev/*

pr:
- main
- master

pool:
vmImage: 'ubuntu-latest'
variables:
runCondition: true
targetBranch: $[ variables['Build.SourceBranchName'] ]

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
jobs:
- job: LinuxBuilds
strategy:
matrix:
astyle:
imageName: 'ubuntu-latest'
BUILD_TYPE: astyle
TARGET_BRANCH: '$(targetBranch)'
cppcheck:
imageName: 'ubuntu-latest'
BUILD_TYPE: cppcheck
TARGET_BRANCH: '$(targetBranch)'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
pool:
vmImage: $(imageName)
steps:
- checkout: self
condition: eq(variables.runCondition, true)
fetchDepth: 50
clean: true
persistCredentials: false
- script: ./ci/travis/run_build.sh
condition: eq(variables.runCondition, true)
displayName: 'Run $(BUILD_TYPE)'

0 comments on commit 615a6a4

Please sign in to comment.