Skip to content

Commit b8077ea

Browse files
committed
Start services in "before_test" section as services are not available on Ubuntu image
1 parent 6c3a4ec commit b8077ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

appveyor.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ install:
6161
- cmd: xcopy /s /y /q postgis-bundle-pg96-2.3.2x64 "C:\Program Files\PostgreSQL\9.6"
6262

6363
# start services required for build/tests
64-
services:
64+
# NOTE: Services are now started in "before_test" section as services are not available on Ubuntu image
65+
# services:
6566
# - mysql56 # start MySQL 5.6
6667
# - mysql57 # start MySQL 5.7
67-
- postgresql96 # start PostgreSQL 9.6
68+
# - postgresql96 # start PostgreSQL 9.6
6869

6970
#---------------------------------#
7071
# build configuration #
@@ -97,11 +98,13 @@ before_test:
9798
- cmd: sqlcmd -S (local)\SQL2012SP1 -i Tests.NHibernate.Spatial.MsSql2012\nhsp_test.sql
9899

99100
# setup MySQL 5.6
101+
# - cmd: net start mysql56
100102
# - cmd: SET MYSQL_PWD=Password12!
101103
# - cmd: SET mysql="C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql.exe"
102104
# - cmd: '%mysql% -P 3306 -u root < Tests.NHibernate.Spatial.MySQL\nhsp_test.sql'
103105

104106
# setup MySQL 5.7
107+
# - cmd: net start mysql57
105108
# - cmd: SET mysql="C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe"
106109
# - cmd: '%mysql% -P 3307 -u root < Tests.NHibernate.Spatial.MySQL57\nhsp_test.sql'
107110

@@ -110,6 +113,7 @@ before_test:
110113
- cmd: '%psql% -q -p 5431 -U postgres -f Tests.NHibernate.Spatial.PostGis\nhsp_test.sql'
111114

112115
# setup PostgreSQL 9.6
116+
- cmd: net start postgresql-x64-9.6
113117
- cmd: SET psql="C:\Program Files\PostgreSQL\9.6\bin\psql.exe"
114118
- cmd: '%psql% -q -p 5432 -U postgres -f Tests.NHibernate.Spatial.PostGis20\nhsp_test.sql'
115119

0 commit comments

Comments
 (0)