Skip to content

Commit 1043003

Browse files
committed
test config update. for appveyor system changes that's causing build fails
1 parent dbb16f5 commit 1043003

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

appveyor.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ clone_folder: c:\projects\php-project-workspace
66
## Build matrix for lowest and highest possible targets
77
environment:
88
matrix:
9-
- php_ver_target: 7.1
9+
- php_ver_target: 7.3
1010
MYSQL_DATABASE: ez_test
1111
MYSQL_HOST: localhost
1212
MYSQL_USER: root
1313
MYSQL_PASSWORD: Password12!
1414
MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 5.7
15-
15+
1616
services:
1717
- mssql2014
1818
- mysql
1919
- postgresql
20-
20+
2121
## Set up environment variables
2222
init:
2323
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;C:\Program Files\PostgreSQL\9.4\bin\;%PATH%
2424
- SET COMPOSER_NO_INTERACTION=1
2525
- SET PHP=1 # This var is connected to PHP install cache
2626
- SET ANSICON=121x90 (121x90)
27-
27+
2828
## Install PHP and composer, and run the appropriate composer command Get the MSSQL DLL's and XDEBUG
2929
install:
3030
- IF EXIST c:\tools\php (SET PHP=0)
@@ -84,7 +84,7 @@ install:
8484
- composer self-update
8585
- composer require php-coveralls/php-coveralls
8686
- composer require phpstan/phpstan
87-
87+
8888
build_script:
8989
# postgres
9090
- SET PGUSER=postgres
@@ -93,25 +93,24 @@ build_script:
9393
- psql -c "CREATE USER ez_test WITH PASSWORD 'ezTest';"
9494
# sqlserver
9595
- sqlcmd -S localhost,1433 -U sa -P Password12! -Q "CREATE DATABASE ez_test"
96-
- sqlcmd -S localhost,1433 -U sa -P Password12! -d ez_test -Q "CREATE LOGIN ez_test WITH PASSWORD=N'ezTest', DEFAULT_DATABASE=ez_test, CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF; ALTER SERVER ROLE [sysadmin] ADD MEMBER ez_test"
97-
96+
- sqlcmd -S localhost,1433 -U sa -P Password12! -d ez_test -Q "CREATE LOGIN ez_test WITH PASSWORD=N'ezTest', DEFAULT_DATABASE=ez_test, CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF; ALTER SERVER ROLE [sysadmin] ADD MEMBER ez_test"
97+
9898
before_test:
9999
- SET PATH=%MYSQL_PATH%\bin;%PATH%
100-
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%
100+
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%
101101
# mysql
102102
- mysql -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS ez_test;"
103103
- mysql -u root -p"Password12!" -e "GRANT ALL PRIVILEGES ON ez_test.* TO ez_test@localhost IDENTIFIED BY 'ezTest'";
104104
- mysql -u root -p"Password12!" -e "FLUSH PRIVILEGES;"
105-
105+
106106
on_success:
107107
- ps: |
108108
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
109109
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
110110
bash codecov.sh -f "coverage.xml"
111-
111+
112112
## Run the actual test
113113
test_script:
114114
- cd c:\projects\php-project-workspace
115115
- vendor\bin\phpunit --coverage-clover=coverage.xml
116116
- vendor\bin\phpstan analyse lib tests --level=1
117-

0 commit comments

Comments
 (0)