CCF/.azure-pipelines.yml

48 строки
1.1 KiB
YAML
Исходник Обычный вид История

2019-04-26 18:27:27 +03:00
trigger:
batch: true
2019-04-26 18:27:27 +03:00
branches:
include:
- main
2020-11-10 13:57:56 +03:00
- "refs/tags/ccf-*"
pr:
autoCancel: true
branches:
include:
- main
paths:
include:
2020-11-10 13:57:56 +03:00
- "*"
2019-04-26 18:27:27 +03:00
schedules:
2020-11-10 13:57:56 +03:00
- cron: "0 3 * * Mon-Fri"
displayName: Daily morning build
branches:
include:
- main
2020-11-10 13:57:56 +03:00
always: true
2019-10-16 15:57:17 +03:00
resources:
containers:
- container: nosgx
2021-04-08 11:19:34 +03:00
image: ccfciteam/ccf-ci:oe0.15.0
2020-07-22 12:55:59 +03:00
options: --publish-all --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
2019-10-16 15:57:17 +03:00
- container: sgx
2021-04-08 11:19:34 +03:00
image: ccfciteam/ccf-ci:oe0.15.0
2020-07-22 12:55:59 +03:00
options: --publish-all --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
2019-10-16 15:57:17 +03:00
2020-01-30 17:17:03 +03:00
variables:
2020-06-25 15:10:04 +03:00
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-') }}:
2020-01-30 17:17:03 +03:00
perf_or_release: release
perf_tests: no_run
2020-06-25 15:10:04 +03:00
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-')) }}:
2020-01-30 17:17:03 +03:00
perf_or_release: perf
perf_tests: run
2020-01-30 17:17:03 +03:00
2019-04-26 18:27:27 +03:00
jobs:
2020-11-10 13:57:56 +03:00
- template: .azure-pipelines-templates/matrix.yml
parameters:
perf_or_release: ${{ variables['perf_or_release'] }}
perf_tests: ${{ variables['perf_tests'] }}