azure-pipelines.yml 886 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# 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:
10
  - main
11
12

resources:
13
  - repo: self
14
15

variables:
16
  imageName: test
17
18
19
20
21
22
23
24
  tag: '$(Build.BuildId)'

steps:
  - task: Docker@2
    displayName: Build uni-test Docker for SuperBench testing
    inputs:
      command: build
      dockerfile: '$(Build.SourcesDirectory)/test.dockerfile'
25
      repository: $(imageName)
26
27
      tags: |
        $(tag)
28
29
  - script: |
      ci_env=`bash <(curl -s https://codecov.io/env)`
30
      docker run $ci_env --entrypoint /bin/bash $(imageName):$(tag) -c 'bash <(curl -s https://codecov.io/bash) -cF cpu-unit-test'
31
32
33
    displayName: Report coverage results
    env:
      CODECOV_TOKEN: $(codecovToken)