"Fossies" - the Fresh Open Source Software Archive

Member "flask-1.1.2/.azure-pipelines.yml" (3 Apr 2020, 2345 Bytes) of package /linux/www/flask-1.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for ".azure-pipelines.yml": 1.1.1_vs_1.1.2.

    1 trigger:
    2   - 'master'
    3   - '*.x'
    4 
    5 jobs:
    6   - job: Tests
    7     variables:
    8       vmImage: 'ubuntu-latest'
    9       python.version: '3.8'
   10       TOXENV: 'py,coverage-ci'
   11       hasTestResults: 'true'
   12 
   13     strategy:
   14       matrix:
   15         Python 3.8 Linux:
   16           vmImage: 'ubuntu-latest'
   17         Python 3.8 Windows:
   18           vmImage: 'windows-latest'
   19         Python 3.8 Mac:
   20           vmImage: 'macos-latest'
   21         PyPy 3 Linux:
   22           python.version: 'pypy3'
   23         Python 3.7 Linux:
   24           python.version: '3.7'
   25         Python 3.6 Linux:
   26           python.version: '3.6'
   27         Python 3.5 Linux:
   28           python.version: '3.5'
   29         Python 2.7 Linux:
   30           python.version: '2.7'
   31         Python 2.7 Windows:
   32           python.version: '2.7'
   33           vmImage: 'windows-latest'
   34         Docs:
   35           TOXENV: 'docs'
   36           hasTestResults: 'false'
   37         Style:
   38           TOXENV: 'style'
   39           hasTestResults: 'false'
   40         VersionRange:
   41           TOXENV: 'devel,lowest,coverage-ci'
   42 
   43     pool:
   44       vmImage: $[ variables.vmImage ]
   45 
   46     steps:
   47       - task: UsePythonVersion@0
   48         inputs:
   49           versionSpec: $(python.version)
   50         displayName: Use Python $(python.version)
   51 
   52       - script: pip --disable-pip-version-check install -U tox
   53         displayName: Install tox
   54 
   55       - script: tox -s false -- --junitxml=test-results.xml tests examples
   56         displayName: Run tox
   57 
   58       - task: PublishTestResults@2
   59         inputs:
   60           testResultsFiles: test-results.xml
   61           testRunTitle: $(Agent.JobName)
   62         condition: eq(variables['hasTestResults'], 'true')
   63         displayName: Publish test results
   64 
   65       - task: PublishCodeCoverageResults@1
   66         inputs:
   67           codeCoverageTool: Cobertura
   68           summaryFileLocation: coverage.xml
   69         condition: eq(variables['hasTestResults'], 'true')
   70         displayName: Publish coverage results
   71 
   72   # Test on the nightly version of Python.
   73   # Use a container since Azure Pipelines may not have the latest build.
   74   - job: FlaskOnNightly
   75     pool:
   76       vmImage: ubuntu-latest
   77     container: python:rc-stretch
   78     steps:
   79       - script: |
   80           echo "##vso[task.prependPath]$HOME/.local/bin"
   81           pip --disable-pip-version-check install --user -U tox
   82         displayName: Install tox
   83 
   84       - script: tox -e nightly
   85         displayName: Run tox