Enable Postgres on Appveyor

This commit is contained in:
Antonin Delpeuch 2018-01-27 18:08:04 +00:00
parent 2da07462ba
commit a8ed571f27
2 changed files with 10 additions and 16 deletions

View File

@ -2,6 +2,7 @@ version: 1.0.{build}
services: services:
- mysql - mysql
- postgresql96
init: init:
- cmd: java -version 2>&1 | find "version" - cmd: java -version 2>&1 | find "version"
@ -28,19 +29,16 @@ build: off
before_test: before_test:
- cmd: echo Running scripts before build... - cmd: echo Running scripts before build...
- cmd: |- - cmd: |-
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! -e "create database test_db;" PATH=C:\Program Files\PostgreSQL\9.6\bin\;C:\Program Files\MySQL Server 5.7\bin\;%PATH%
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root test_db --password=Password12! < extensions\database\test\conf\travis-mysql.sql SET MYSQL_PWD="Password12!"
mysql -u root --password=Password12! -e "create database test_db;"
mysql -u root test_db --password=Password12! < extensions\database\test\conf\travis-mysql.sql
SET PGUSER="postgres"
SET PGPASSWORD="Password12!"
psql -c 'CREATE DATABASE test_db;'
psql test_db < extensions\database\test\conf\travis-pgsql.sql
copy extensions\database\test\conf\appveyor_int_tests.xml extensions\database\test\conf\int_tests.xml copy extensions\database\test\conf\appveyor_int_tests.xml extensions\database\test\conf\int_tests.xml
# build_script:
# - cmd: >-
# echo Running refine build...
#
# cd OpenRefine
#
# refine build
test_script: test_script:
- cmd: echo Running test_script... - cmd: echo Running test_script...
- cmd: >- - cmd: >-
@ -50,7 +48,4 @@ test_script:
refine server_test refine server_test
git log --oneline
refine extensions_test refine extensions_test

View File

@ -15,7 +15,7 @@
<parameter name = "pgSqlDbHost" value="127.0.0.1"/> <parameter name = "pgSqlDbHost" value="127.0.0.1"/>
<parameter name = "pgSqlDbPort" value="5432"/> <parameter name = "pgSqlDbPort" value="5432"/>
<parameter name = "pgSqlDbUser" value="postgres"/> <parameter name = "pgSqlDbUser" value="postgres"/>
<parameter name = "pgSqlDbPassword" value=""/> <parameter name = "pgSqlDbPassword" value="Password12!"/>
<parameter name = "pgSqlTestTable" value="test_table"/> <parameter name = "pgSqlTestTable" value="test_table"/>
<parameter name = "mariaDbName" value="test_db"/> <parameter name = "mariaDbName" value="test_db"/>
@ -27,7 +27,6 @@
<test name="DatabaseExtensionUnitTest"> <test name="DatabaseExtensionUnitTest">
<groups> <groups>
<run> <run>
<exclude name="requiresPgSQL"/>
<exclude name="requiresMariaDB" /> <exclude name="requiresMariaDB" />
</run> </run>
</groups> </groups>