2017-12-24 06:06:09 +01:00
|
|
|
version: 1.0.{build}
|
2018-01-04 20:50:57 +01:00
|
|
|
|
2018-01-27 18:48:43 +01:00
|
|
|
services:
|
|
|
|
- mysql
|
2018-01-27 19:08:04 +01:00
|
|
|
- postgresql96
|
2018-01-27 18:48:43 +01:00
|
|
|
|
2018-01-04 20:50:57 +01:00
|
|
|
init:
|
|
|
|
- cmd: java -version 2>&1 | find "version"
|
|
|
|
|
2018-01-27 18:48:43 +01:00
|
|
|
clone_depth: 5
|
|
|
|
skip_branch_with_pr: true
|
2021-01-29 23:04:21 +01:00
|
|
|
skip_commits:
|
|
|
|
files:
|
|
|
|
- docs/
|
2018-01-27 18:48:43 +01:00
|
|
|
|
2017-12-24 06:06:09 +01:00
|
|
|
environment:
|
2021-11-07 11:51:58 +01:00
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk11
|
2018-09-16 16:34:47 +02:00
|
|
|
MAVEN_HOME: C:\Program Files (x86)\Apache\Maven
|
2018-01-04 21:44:40 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2017-12-24 06:06:09 +01:00
|
|
|
build: off
|
2018-01-04 20:38:34 +01:00
|
|
|
|
2018-01-27 18:48:43 +01:00
|
|
|
# scripts to run before test
|
|
|
|
before_test:
|
2018-01-04 20:50:57 +01:00
|
|
|
- cmd: echo Running scripts before build...
|
2018-01-27 18:48:43 +01:00
|
|
|
- cmd: |-
|
2018-01-27 19:16:19 +01:00
|
|
|
PATH=C:\Program Files\PostgreSQL\9.6\bin\;C:\Program Files\MySQL\MySQL Server 5.7\bin\;%PATH%
|
2018-01-27 19:34:19 +01:00
|
|
|
SET MYSQL_PWD=Password12!
|
2018-01-27 19:08:04 +01:00
|
|
|
mysql -u root --password=Password12! -e "create database test_db;"
|
2020-12-04 08:50:10 +01:00
|
|
|
mysql -u root test_db --password=Password12! < extensions\database\tests\conf\test-mysql.sql
|
2018-01-27 19:34:19 +01:00
|
|
|
echo "localhost:*:test_db:postgres:Password12!" > C:\Program Files\PostgreSQL\9.6\pgpass.conf
|
|
|
|
echo "localhost:*:test_db:postgres:Password12!" > pgpass.conf
|
|
|
|
echo "localhost:*:test_db:postgres:Password12!" > %userprofile%\pgpass.conf
|
|
|
|
SET PGPASSFILE=C:\Program Files\PostgreSQL\9.6\pgpass.conf
|
|
|
|
SET PGPASSWORD=Password12!
|
|
|
|
SET PGUSER=postgres
|
2018-01-27 19:24:09 +01:00
|
|
|
createdb test_db
|
2020-12-04 08:50:10 +01:00
|
|
|
psql -U postgres test_db < extensions\database\tests\conf\test-pgsql.sql
|
2018-01-27 19:34:19 +01:00
|
|
|
|
2018-09-16 16:34:47 +02:00
|
|
|
copy extensions\database\tests\conf\appveyor_tests.xml extensions\database\tests\conf\tests.xml
|
2020-12-04 08:50:10 +01:00
|
|
|
copy packaging\test_pom.xml packaging\pom.xml
|
2018-09-16 16:34:47 +02:00
|
|
|
- cmd: |-
|
|
|
|
mvn process-resources
|
|
|
|
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
2018-01-27 18:03:53 +01:00
|
|
|
|
2017-12-24 06:06:09 +01:00
|
|
|
test_script:
|
2018-01-04 20:50:57 +01:00
|
|
|
- cmd: echo Running test_script...
|
2017-12-24 06:06:09 +01:00
|
|
|
- cmd: >-
|
|
|
|
echo PATH is:
|
|
|
|
|
|
|
|
path
|
|
|
|
|
2018-09-16 16:34:47 +02:00
|
|
|
refine test
|
|
|
|
|
2019-08-28 11:08:22 +02:00
|
|
|
on_failure:
|
|
|
|
- cmd: |-
|
|
|
|
dir
|
|
|
|
|
2018-09-16 16:34:47 +02:00
|
|
|
cache:
|
|
|
|
- C:\Users\appveyor\.m2
|
|
|
|
|