From 26744b71bd26b1aaf21491e95264d7acd8c1a207 Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Mon, 13 Nov 2023 07:13:45 -0500 Subject: [PATCH 1/5] AppVeyor: Restore MySQL Looks like the image was borked with MySQL 8 went in (because it's still trying to start 5.7), see https://github.com/appveyor/ci/issues/3894. --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 72683c428..4f01c5431 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -38,6 +38,7 @@ init: - git config --global core.autocrlf input - SET PATH=%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%PATH% - net start MSSQL$SQL2019 + - ps: Start-Service MySQL80 nuget: disable_publish_on_pr: true @@ -46,7 +47,7 @@ build_script: # Postgres - createdb test # MySQL - # - mysql -e "create database test;" --user=root + - mysql -e "create database test;" --user=root # Our stuff - ps: .\build.ps1 -PullRequestNumber "$env:APPVEYOR_PULL_REQUEST_NUMBER" -CreatePackages $true From 2f844b0f2a61add58f688c1ce7e41bd47a83869a Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Mon, 13 Nov 2023 07:24:57 -0500 Subject: [PATCH 2/5] Move creation scripts, specify pathing Looks like paths are borked too...why didn't they yank this image update?!? --- appveyor.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 4f01c5431..0e9487f3a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,15 +39,15 @@ init: - SET PATH=%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%PATH% - net start MSSQL$SQL2019 - ps: Start-Service MySQL80 + # Postgres + - createdb test + # MySQL + - C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql -e "create database test;" --user=root nuget: disable_publish_on_pr: true build_script: - # Postgres - - createdb test - # MySQL - - mysql -e "create database test;" --user=root # Our stuff - ps: .\build.ps1 -PullRequestNumber "$env:APPVEYOR_PULL_REQUEST_NUMBER" -CreatePackages $true From cbb2eb48b13f7e28b9a60c0c48badd5df1c19cec Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Mon, 13 Nov 2023 07:29:20 -0500 Subject: [PATCH 3/5] Okay...maybe Postgres is lazy start? --- appveyor.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 0e9487f3a..7426ee493 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,13 +39,15 @@ init: - SET PATH=%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%PATH% - net start MSSQL$SQL2019 - ps: Start-Service MySQL80 + +nuget: + disable_publish_on_pr: true + +before_build: # Postgres - createdb test # MySQL - C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql -e "create database test;" --user=root - -nuget: - disable_publish_on_pr: true build_script: # Our stuff From c78a8b1ef46ae55e51f41ff59b69446c72416fa3 Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Mon, 13 Nov 2023 07:38:50 -0500 Subject: [PATCH 4/5] Dammit YAML. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 7426ee493..5604612fa 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -47,7 +47,7 @@ before_build: # Postgres - createdb test # MySQL - - C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql -e "create database test;" --user=root + - '"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "create database test;" --user=root' build_script: # Our stuff From f432de0a00102023876b3d8e02d81b6d64ac6055 Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Mon, 13 Nov 2023 07:51:09 -0500 Subject: [PATCH 5/5] Fix env variable path --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 5604612fa..6197828f6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,7 +19,7 @@ environment: POSTGRES_ENV_POSTGRES_PASSWORD: Password12! POSTGRES_ENV_POSTGRES_DB: test # MySQL - MYSQL_PATH: C:\Program Files\MySql\MySQL Server 5.7 + MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 8.0 MYSQL_PWD: Password12! MYSQL_ENV_MYSQL_USER: root MYSQL_ENV_MYSQL_PASSWORD: Password12!