Skip to content

Commit c59a929

Browse files
committed
norm if CI conds
1 parent 00fc807 commit c59a929

File tree

3 files changed

+37
-34
lines changed

3 files changed

+37
-34
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ jobs:
108108
steps:
109109
- name: git checkout
110110
uses: actions/checkout@v2
111-
- name: DEBUG list env
112-
run: gci env:* | sort-object name
113-
- name: build
111+
- name: Build
114112
run: appveyor/build.bat
115-
- name: test
113+
- name: Test
116114
run: appveyor/test.bat

appveyor/build_task.bat

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
@echo on
22

3-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >NUL 2>NUL
4-
if %errorlevel% neq 0 exit /b 3
5-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin64 >NUL 2>NUL
6-
if %errorlevel% neq 0 exit /b 3
7-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw >NUL 2>NUL
8-
if %errorlevel% neq 0 exit /b 3
9-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw-w64 >NUL 2>NUL
10-
if %errorlevel% neq 0 exit /b 3
11-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\msys64 >NUL 2>NUL
12-
if %errorlevel% neq 0 exit /b 3
13-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
14-
if %errorlevel% neq 0 exit /b 3
15-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
16-
if %errorlevel% neq 0 exit /b 3
17-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
18-
if %errorlevel% neq 0 exit /b 3
19-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
20-
if %errorlevel% neq 0 exit /b 3
21-
if "%APPVEYOR%" equ "True" del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
22-
if %errorlevel% neq 0 exit /b 3
23-
if "%APPVEYOR%" equ "True" del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
24-
if %errorlevel% neq 0 exit /b 3
3+
if "%APPVEYOR%" equ "True" (
4+
rmdir /s /q C:\cygwin >NUL 2>NUL
5+
if %errorlevel% neq 0 exit /b 3
6+
rmdir /s /q C:\cygwin64 >NUL 2>NUL
7+
if %errorlevel% neq 0 exit /b 3
8+
rmdir /s /q C:\mingw >NUL 2>NUL
9+
if %errorlevel% neq 0 exit /b 3
10+
rmdir /s /q C:\mingw-w64 >NUL 2>NUL
11+
if %errorlevel% neq 0 exit /b 3
12+
rmdir /s /q C:\msys64 >NUL 2>NUL
13+
if %errorlevel% neq 0 exit /b 3
14+
rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
15+
if %errorlevel% neq 0 exit /b 3
16+
rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
17+
if %errorlevel% neq 0 exit /b 3
18+
rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
19+
if %errorlevel% neq 0 exit /b 3
20+
rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
21+
if %errorlevel% neq 0 exit /b 3
22+
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
23+
if %errorlevel% neq 0 exit /b 3
24+
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
25+
if %errorlevel% neq 0 exit /b 3
26+
)
2527

2628
cd /D %APPVEYOR_BUILD_FOLDER%
2729
if %errorlevel% neq 0 exit /b 3

appveyor/test_task.bat

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ if "%APPVEYOR%" equ "True" (
4949
)
5050

5151
rem prepare for ext/openssl
52-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\OpenSSL-Win32 >NUL 2>NUL
53-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\OpenSSL-Win64 >NUL 2>NUL
52+
if "%APPVEYOR%" equ "True" (
53+
rmdir /s /q C:\OpenSSL-Win32 >NUL 2>NUL
54+
rmdir /s /q C:\OpenSSL-Win64 >NUL 2>NUL
55+
)
5456
if "%PLATFORM%" == "x64" (
5557
set OPENSSLDIR="C:\Program Files\Common Files\SSL"
5658
) else (
@@ -118,12 +120,13 @@ nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set
118120

119121
set EXIT_CODE=%errorlevel%
120122

121-
appveyor PushArtifact %TEST_PHP_JUNIT%
123+
if "%APPVEYOR%" equ "True" (
124+
appveyor PushArtifact %TEST_PHP_JUNIT%
122125

123-
if %EXIT_CODE% GEQ 1 (
124-
git checkout ext\pgsql\tests\config.inc
125-
git diff > bless_tests.patch
126-
appveyor PushArtifact bless_tests.patch
127-
)
126+
if %EXIT_CODE% GEQ 1 (
127+
git checkout ext\pgsql\tests\config.inc
128+
git diff > bless_tests.patch
129+
appveyor PushArtifact bless_tests.patch
130+
)
128131

129132
exit /b %EXIT_CODE%

0 commit comments

Comments
 (0)