aboutsummaryrefslogtreecommitdiffhomepage
path: root/.azure/steps.yml
blob: e5f765f058a91812c68eccf54f8b80e3535a4d89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
steps:
  - task: NodeTool@0
    inputs:
      versionSpec: '$(nodeVersion)'
    displayName: 'Install Node.js'

  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(pythonVersion)'
    displayName: 'Install Python'

  - pwsh: python -m pip install --upgrade pip
    displayName: 'Install python tools'

  - pwsh: |
      git config --global user.email 'bot@renovateapp.com'
      git config --global user.name  'Renovate Bot'
      node --version
      python --version
      yarn --version
      pip --version
    displayName: 'Init platform'

  - checkout: self
    fetchDepth: 5
    path: renovate

  - pwsh: |
      yarn install --frozen-lockfile --link-duplicates
      pip install --user -r requirements.txt
    displayName: 'Installing Dependencies'

  - pwsh: |
      yarn lint
      yarn test-schema
      yarn type-check
    displayName: 'Lint'

  - pwsh: yarn build
    displayName: 'Build'

  - pwsh: yarn jest -i --ci --reporters=default --reporters=jest-junit --coverageReporters=text-summary --coverageReporters=cobertura
    displayName: 'Unit Tests'

  - task: PublishTestResults@2
    inputs:
      testResultsFiles: 'junit.xml'
      testRunTitle: 'CI Tests $(Agent.OS)'
    displayName: 'Publish test results'
    condition: succeededOrFailed()

  - task: PublishCodeCoverageResults@1
    inputs:
      codeCoverageTool: Cobertura
      summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/*coverage.xml'
    displayName: 'Publish coverage results'
    condition: succeededOrFailed()

  - pwsh: yarn test-e2e
    displayName: 'E2E Tests'