Skip to content

Commit

Permalink
Retire AppVeyor
Browse files Browse the repository at this point in the history
Closes GH-11566
  • Loading branch information
iluuu1994 committed Jul 5, 2023
1 parent 4cc800f commit f47dc25
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 103 deletions.
55 changes: 0 additions & 55 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/scripts/windows/build.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
if /i "%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)
Expand Down
20 changes: 1 addition & 19 deletions .github/scripts/windows/build_task.bat
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
if /i "%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)

if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin64 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw-w64 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q C:\msys64 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/windows/test.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
if /i "%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)
Expand Down
27 changes: 4 additions & 23 deletions .github/scripts/windows/test_task.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
if /i "%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)
Expand Down Expand Up @@ -32,11 +32,7 @@ set PDO_MYSQL_TEST_PASS=%MYSQL_PWD%
set PDO_MYSQL_TEST_HOST=%MYSQL_TEST_HOST%
set PDO_MYSQL_TEST_PORT=%MYSQL_TEST_PORT%
set PDO_MYSQL_TEST_DSN=mysql:host=%PDO_MYSQL_TEST_HOST%;port=%PDO_MYSQL_TEST_PORT%;dbname=test
if /i "%APPVEYOR%" equ "True" (
set TMP_MYSQL_BIN=%ProgramFiles%\MySql\MySQL Server 5.7\bin
) else (
set TMP_MYSQL_BIN=C:\mysql\bin
)
set TMP_MYSQL_BIN=C:\mysql\bin
"%TMP_MYSQL_BIN%\mysql.exe" --host=%PDO_MYSQL_TEST_HOST% --port=%MYSQL_TEST_PORT% --user=%MYSQL_TEST_USER% --password=%MYSQL_TEST_PASSWD% -e "CREATE DATABASE IF NOT EXISTS test"
if %errorlevel% neq 0 exit /b 3

Expand All @@ -46,22 +42,14 @@ set PGPASSWORD=Password12!
rem set PGSQL_TEST_CONNSTR=host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!
echo ^<?php $conn_str = "host=127.0.0.1 dbname=test port=5432 user=%PGUSER% password=%PGPASSWORD%"; ?^> >> "./ext/pgsql/tests/config.inc"
set PDO_PGSQL_TEST_DSN=pgsql:host=127.0.0.1 port=5432 dbname=test user=%PGUSER% password=%PGPASSWORD%
if /i "%APPVEYOR%" equ "True" (
set TMP_POSTGRESQL_BIN=%ProgramFiles%\PostgreSQL\10\bin
) else (
set TMP_POSTGRESQL_BIN=%PGBIN%
)
set TMP_POSTGRESQL_BIN=%PGBIN%
"%TMP_POSTGRESQL_BIN%\createdb.exe" test
if %errorlevel% neq 0 exit /b 3

rem setup ODBC related exts
set ODBC_TEST_USER=sa
set ODBC_TEST_PASS=Password12!
if /i "%APPVEYOR%" equ "True" (
set ODBC_TEST_DSN=Driver={ODBC Driver 13 for SQL Server};Server=^(local^)\SQL2017;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
) else (
set ODBC_TEST_DSN=Driver={ODBC Driver 17 for SQL Server};Server=^(local^)\SQLEXPRESS;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
)
set ODBC_TEST_DSN=Driver={ODBC Driver 17 for SQL Server};Server=^(local^)\SQLEXPRESS;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
set PDOTEST_DSN=odbc:%ODBC_TEST_DSN%

rem prepare for ext/openssl
Expand Down Expand Up @@ -133,11 +121,4 @@ if %EXIT_CODE% GEQ 1 (
git diff > bless_tests.patch
)

if /i "%APPVEYOR%" equ "True" (
appveyor PushArtifact %TEST_PHP_JUNIT%
if %EXIT_CODE% GEQ 1 (
appveyor PushArtifact bless_tests.patch
)
)

exit /b %EXIT_CODE%
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ locations.
├─ zend_vm_opcodes.c # Generated by `Zend/zend_vm_gen.php`
├─ zend_vm_opcodes.h # Generated by `Zend/zend_vm_gen.php`
└─ ...
├─ appveyor/ # Appveyor CI service files
└─ build/ # *nix build system files
├─ ax_*.m4 # https://github.com/autoconf-archive/autoconf-archive
├─ config.guess # https://git.savannah.gnu.org/cgit/config.git
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ blog to the most popular websites in the world. PHP is distributed under the
[PHP License v3.01](LICENSE).

[![Build status](https://travis-ci.com/php/php-src.svg?branch=master)](https://travis-ci.com/php/php-src)
[![Build status](https://ci.appveyor.com/api/projects/status/meyur6fviaxgdwdy/branch/master?svg=true)](https://ci.appveyor.com/project/php/php-src)
[![Build Status](https://dev.azure.com/phpazuredevops/php/_apis/build/status/php.php-src?branchName=master)](https://dev.azure.com/phpazuredevops/php/_build/latest?definitionId=1&branchName=master)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/php.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:php)

Expand Down
1 change: 0 additions & 1 deletion docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ explained at the end of this document in
See:

- https://travis-ci.com/github/php/php-src
- https://ci.appveyor.com/project/php/php-src
- https://dev.azure.com/phpazuredevops/PHP/
- https://cirrus-ci.com/github/php/php-src

Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/file/windows_acls/common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function skipif() {
if (getenv('GITHUB_ACTIONS')) {
// bug44859_4.phpt test fails on the 1st run
// other ACL tests cannot be run twice
die('skip failing on Github Actions (but passes in AppVeyor)');
die('skip failing on Github Actions');
}
}

Expand Down

0 comments on commit f47dc25

Please sign in to comment.