# The DNN Community Modules Build .yml.
# Add steps to the build, run tests, deploy and more:
# https://aka.ms/yml
#
# NOTE: Whitespace is super important with yml, please respect 
#       the necessary whitespace for different jobs/tasks/etc

resources:
  repositories:
    # References the DNN Community Modules Build DevOps repository which contains
    # yml files that will make running the build simple. It is not required to use
    # the repository but it will make configuring the build easier
    - repository: DevOps 
      type: git
      ref: 'refs/heads/master'
      name: "DevOps.Templates"


# Build triggers tell Azure DevOps when to run the build.
# PR builds are implied unless explicitly defined
trigger:
  branches:
    include:
    - development
    - master # The CI build will execute with every commit to the master branch of PR merge

jobs:
- template: azure-pipelines.yml@DevOps # The entry point template from the DevOps repository

  # there are optional parameters you can send to the build. If
  # you would like to use the option parameters just uncomment 
  # 'parameters:' and then the parameters you would like to use

  #parameters:
    #version: "5.0.1.$[counter('versioncounter', 0)]" # Sets the current build version that includes a revision counter. Default: '1.0.0.0'
    #configuration: 'Release' # The build configuration. Default: 'Release'
    #platform: 'Any CPU' # The build platform. Default: 'Any CPU'
    #solution: '**/*.sln' # The path to the solution file. Default: '**/*.sln'
Set up CI with Azure Pipelines
Set up CI with Azure Pipelines