1trigger:
2  batch: true
3  branches:
4    include:
5      - PHP-7.4
6      - PHP-8.0
7      - PHP-8.1
8      - master
9  paths:
10    exclude:
11      - docs/*
12      - NEWS
13      - UPGRADING
14      - UPGRADING.INTERNALS
15      - README.md
16      - CONTRIBUTING.md
17      - CODING_STANDARDS.md
18
19schedules:
20  - cron: "0 1 * * *"
21    displayName: Nightly build
22    branches:
23      include:
24        - PHP-7.4
25        - PHP-8.0
26        - PHP-8.1
27        - master
28
29jobs:
30  - template: azure/job.yml
31    parameters:
32      configurationName: DEBUG_NTS
33      configurationParameters: '--enable-debug --disable-zts'
34  - template: azure/job.yml
35    parameters:
36      configurationName: RELEASE_ZTS
37      configurationParameters: '--disable-debug --enable-zts'
38  - template: azure/i386/job.yml
39    parameters:
40      configurationName: I386_DEBUG_ZTS
41      configurationParameters: '--enable-debug --enable-zts'
42  - template: azure/macos/job.yml
43    parameters:
44      configurationName: MACOS_DEBUG_NTS
45      configurationParameters: '--enable-debug --disable-zts'
46  - ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
47    - template: azure/job.yml
48      parameters:
49        configurationName: DEBUG_ZTS
50        configurationParameters: '--enable-debug --enable-zts'
51    - template: azure/job.yml
52      parameters:
53        configurationName: RELEASE_NTS
54        configurationParameters: '--disable-debug --disable-zts'
55    - template: azure/i386/job.yml
56      parameters:
57        configurationName: I386_DEBUG_NTS
58        configurationParameters: '--enable-debug --disable-zts'
59    - template: azure/i386/job.yml
60      parameters:
61        configurationName: I386_RELEASE_NTS
62        configurationParameters: '--disable-debug --disable-zts'
63    - template: azure/i386/job.yml
64      parameters:
65        configurationName: I386_RELEASE_ZTS
66        configurationParameters: '--disable-debug --enable-zts'
67    - template: azure/macos/job.yml
68      parameters:
69        configurationName: MACOS_DEBUG_ZTS
70        configurationParameters: '--enable-debug --enable-zts'
71    - template: azure/macos/job.yml
72      parameters:
73        configurationName: MACOS_RELEASE_NTS
74        configurationParameters: '--disable-debug --disable-zts'
75    - template: azure/macos/job.yml
76      parameters:
77        configurationName: MACOS_RELEASE_ZTS
78        configurationParameters: '--disable-debug --enable-zts'
79    - template: azure/job.yml
80      parameters:
81        configurationName: DEBUG_ZTS_ASAN_UBSAN
82        configurationParameters: '--enable-debug --enable-zts --enable-address-sanitizer --enable-undefined-sanitizer'
83        runTestsParameters: --asan
84        timeoutInMinutes: 360
85    - template: azure/msan_job.yml
86      parameters:
87        configurationName: DEBUG_ZTS_MSAN
88        configurationParameters: '--enable-debug --enable-zts'
89        runTestsParameters: --msan
90        timeoutInMinutes: 120
91    - template: azure/community_job.yml
92      parameters:
93        configurationName: COMMUNITY
94        configurationParameters: >-
95            --enable-debug --enable-zts --enable-address-sanitizer --enable-undefined-sanitizer
96            CFLAGS='-fno-sanitize-recover'
97        timeoutInMinutes: 90
98    - template: azure/coverage_job.yml
99      parameters:
100        configurationName: COVERAGE_DEBUG_ZTS
101        configurationParameters: '--enable-debug --disable-zts'
102        timeoutInMinutes: 90
103    - template: azure/opcache_variation_job.yml
104      parameters:
105        configurationName: DEBUG_NTS_OPCACHE
106        configurationParameters: '--enable-debug --disable-zts'
107        timeoutInMinutes: 120
108    - template: azure/job.yml
109      parameters:
110        configurationName: DEBUG_NTS_REPEAT
111        configurationParameters: '--enable-debug --disable-zts'
112        runTestsParameters: '--repeat 2'
113    - template: azure/libmysqlclient_job.yml
114      parameters:
115        configurationName: LIBMYSQLCLIENT_DEBUG_NTS
116        configurationParameters: '--enable-debug --disable-zts'
117    - template: azure/job.yml
118      parameters:
119        configurationName: VARIATION_DEBUG_ZTS
120        configurationParameters: >-
121            --enable-debug --enable-zts
122            CFLAGS="-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1"
123