GithubHelp home page GithubHelp logo

azure-pipeline-templates's Introduction

Build Status

azure-pipeline-templates

usage

First find the name of your github service connection

You can find this in Project Settings => Service connections in the Azure Devops dashboard for your project.

Next add this to the beginning of your azure-pipelines.yml

resources:
  repositories:
    - repository: asottile
      type: github
      endpoint: <<<service connection name>>>
      name: asottile/azure-pipeline-templates
      ref: refs/tags/v0.0.4

this will make the templates in this repository available in the asottile namespace.

job--python-tox.yml

new in v0.0.1

This job template will install python and invoke tox.

parameters

  • toxenvs: the list of tox environment names to run
  • os: choices (linux, windows, osx)
  • coverage: new in v0.0.3 after the run publish coverage to azure pipelines, default true

The tox environments must either:

  • be equal to: py27, py34, py35, py36, py37, py38
  • start with: py27-, py34-, py35-, py36-, py37-, py38-

for now, python3.8 is only available on linux -- it is installed from deadsnakes

coverage information can be displayed using a shields.io badge

example

- template: job--python-tox.yml@asottile
  parameters:
    toxenvs: [py27, py37]
    os: windows

job--pre-commit.yml

new in v0.0.2

This job template will invoke pre-commit against all files.

parameters

  • ruby: the version of ruby to install to the system (used by some hooks), defaults to '>= 2.4'
  • python: the python version to run pre-commit with, defaults to '3.7'

example

- template: job--pre-commit.yml@asottile

azure-pipeline-templates's People

Contributors

asottile avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.