forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibmysqlclient_job.yml
37 lines (36 loc) · 1.37 KB
/
libmysqlclient_job.yml
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
parameters:
configurationName: ''
configurationParameters: ''
runTestsParameters: ''
timeoutInMinutes: 60
jobs:
- job: ${{ parameters.configurationName }}
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: |
sudo apt-get update -y | true
sudo apt install bison re2c
displayName: 'APT'
- script: |
set -o
sudo service mysql start
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
# Ensure local_infile tests can run.
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
displayName: 'Setup MySQL server'
# Does not support caching_sha2_auth :(
#- template: libmysqlclient_test.yml
# parameters:
# configurationName: ${{ parameters.configurationName }} - MySQL 5.6.49
# libmysql: mysql-5.6.49-linux-glibc2.12-x86_64.tar.gz
- template: libmysqlclient_test.yml
parameters:
configurationName: ${{ parameters.configurationName }} - MySQL 5.7.35
libmysql: mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz
- template: libmysqlclient_test.yml
parameters:
configurationName: ${{ parameters.configurationName }} - MySQL 8.0.24
libmysql: mysql-8.0.24-linux-glibc2.12-x86_64.tar.xz
configurationParameters: ${{ parameters.configurationParameters }} --enable-werror