azure-pipelines.yml 878 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
11
  - master
  - dev
12
13

resources:
14
  - repo: self
15
16

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

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