forked from OpenRefine/OpenRefine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (43 loc) · 1.6 KB
/
appveyor.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: 1.0.{build}
services:
- mysql
- postgresql96
init:
- cmd: java -version 2>&1 | find "version"
clone_depth: 5
skip_branch_with_pr: true
environment:
ANT_HOME: C:\apache-ant-1.10.1
JAVA_HOME: C:\Program Files (x86)\Java\jdk1.8.0
matrix:
fast_finish: true
install:
- cmd: if not exist %ANT_HOME% pushd . && cd \ && appveyor DownloadFile http://apache.spinellicreations.com/ant/binaries/apache-ant-1.10.1-bin.zip && 7z x apache-ant-1.10.1-bin.zip && popd
cache:
- C:\apache-ant-1.10.1
- apache-ant-1.10.1-bin.zip
build: off
# scripts to run before test
before_test:
- cmd: echo Running scripts before build...
- cmd: |-
PATH=C:\Program Files\PostgreSQL\9.6\bin\;C:\Program Files\MySQL\MySQL Server 5.7\bin\;%PATH%
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
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
createdb test_db
psql -U postgres test_db < extensions\database\test\conf\travis-pgsql.sql
copy extensions\database\test\conf\appveyor_tests.xml extensions\database\test\conf\tests.xml
test_script:
- cmd: echo Running test_script...
- cmd: >-
echo PATH is:
path
refine server_test
refine extensions_test