2016-10-20 15:35:07 +03:00
|
|
|
version: '{build}'
|
|
|
|
environment:
|
|
|
|
matrix:
|
2020-08-21 17:27:59 +03:00
|
|
|
- DB: '10.2.33'
|
2018-02-07 13:02:50 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_PARAM: 'Visual Studio 15 2017 Win64'
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
|
2020-08-21 17:27:59 +03:00
|
|
|
- DB: '10.3.24'
|
2018-02-07 13:02:50 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_PARAM: 'Visual Studio 15 2017 Win64'
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
|
2020-08-21 17:27:59 +03:00
|
|
|
- DB: '10.4.14'
|
2018-02-07 13:02:50 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_PARAM: 'Visual Studio 15 2017 Win64'
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
|
2020-08-21 17:27:59 +03:00
|
|
|
- DB: '10.5.5'
|
2020-01-31 15:55:36 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_PARAM: 'Visual Studio 15 2017 Win64'
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
|
2020-08-21 17:27:59 +03:00
|
|
|
- DB: '10.1.46'
|
2018-02-07 13:02:50 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_PARAM: 'Visual Studio 15 2017 Win64'
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
|
|
|
|
clone_folder: c:\projects\mariadb-connector-j
|
2016-10-20 15:35:07 +03:00
|
|
|
install:
|
|
|
|
- ps: |
|
|
|
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
|
|
if (!(Test-Path -Path "C:\maven" )) {
|
2018-08-23 15:40:35 +03:00
|
|
|
(new-object System.Net.WebClient).DownloadFile('http://www.us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip', 'C:\maven-bin.zip')
|
2016-10-20 15:35:07 +03:00
|
|
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
|
|
|
|
}
|
|
|
|
# Prepend Java entry, remove Ruby entry (C:\Ruby193\bin;) from PATH
|
2020-01-31 15:55:36 +03:00
|
|
|
- cmd: appveyor-download.bat
|
2018-02-07 13:02:50 +03:00
|
|
|
- cmd: msiexec /i server.msi INSTALLDIR=c:\projects\server SERVICENAME=mariadb ALLOWREMOTEROOTACCESS=true /qn
|
|
|
|
- cmd: "\"c:\\projects\\server\\bin\\mysql.exe\" -e \"create database testj\" --user=root"
|
2018-08-24 12:34:31 +03:00
|
|
|
- cmd: SET PATH=C:\maven\apache-maven-3.5.4\bin;%JAVA_HOME%\bin;%PATH:C:\Ruby193\bin;=%;
|
2017-09-19 17:24:04 +03:00
|
|
|
- cmd: SET MAVEN_OPTS=-Xms512m -Xms768m
|
|
|
|
- cmd: SET JAVA_OPTS=-Xms512m -Xmx768m
|
2018-08-24 12:34:31 +03:00
|
|
|
- cmd: SET M2_HOME=C:\maven\apache-maven-3.5.4
|
2018-02-07 13:02:50 +03:00
|
|
|
- cmd: cd c:\projects\mariadb-connector-j
|
2016-10-20 15:35:07 +03:00
|
|
|
- cmd: mvn --version
|
|
|
|
- cmd: java -version
|
|
|
|
build_script:
|
2020-03-02 15:35:10 +03:00
|
|
|
- mvn clean
|
|
|
|
- mvn test -Dmaven.test.skip=true
|
2016-10-20 15:35:07 +03:00
|
|
|
test_script:
|
2018-02-07 13:02:50 +03:00
|
|
|
- mvn test -DdbUrl="jdbc:mariadb://localhost/testj?user=root"
|