Skip to content

Commit 72e1ab2

Browse files
committed
Attempt to conditionally deploy docs
1 parent 3bf2ede commit 72e1ab2

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.appveyor.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,37 @@ cache:
3535
install:
3636
- SET PATH=c:\tools\%PHP_DIR%;%PATH%
3737
- IF NOT EXIST c:\tools\%PHP_DIR%\php.exe (
38-
cinst -y php -i --version %PHP_VERSION% &&
39-
cd c:\tools\%PHP_DIR% &&
40-
echo extension_dir=ext >> c:\tools\%PHP_DIR%\php.ini &&
41-
echo extension=php_openssl.dll >> c:\tools\%PHP_DIR%\php.ini &&
42-
echo extension=php_curl.dll >> c:\tools\%PHP_DIR%\php.ini &&
43-
echo extension=php_mbstring.dll >> c:\tools\%PHP_DIR%\php.ini &&
44-
echo extension=php_pdo_mysql.dll >> c:\tools\%PHP_DIR%\php.ini &&
45-
echo extension=php_pdo_sqlite.dll >> c:\tools\%PHP_DIR%\php.ini &&
46-
echo extension=php_fileinfo.dll >> c:\tools\%PHP_DIR%\php.ini &&
47-
echo extension=php_gd2.dll >> c:\tools\%PHP_DIR%\php.ini &&
48-
echo extension=php_ftp.dll >> c:\tools\%PHP_DIR%\php.ini &&
49-
echo extension=php_com_dotnet.dll >> c:\tools\%PHP_DIR%\php.ini &&
50-
echo memory_limit=256M >> c:\tools\%PHP_DIR%\php.ini &&
51-
echo curl.cainfo=C:\tools\cacert.pem >> c:\tools\%PHP_DIR%\php.ini
52-
)
38+
cinst -y php -i --version %PHP_VERSION% &&
39+
cd c:\tools\%PHP_DIR% &&
40+
echo extension_dir=ext >> c:\tools\%PHP_DIR%\php.ini &&
41+
echo extension=php_openssl.dll >> c:\tools\%PHP_DIR%\php.ini &&
42+
echo extension=php_curl.dll >> c:\tools\%PHP_DIR%\php.ini &&
43+
echo extension=php_mbstring.dll >> c:\tools\%PHP_DIR%\php.ini &&
44+
echo extension=php_pdo_mysql.dll >> c:\tools\%PHP_DIR%\php.ini &&
45+
echo extension=php_pdo_sqlite.dll >> c:\tools\%PHP_DIR%\php.ini &&
46+
echo extension=php_fileinfo.dll >> c:\tools\%PHP_DIR%\php.ini &&
47+
echo extension=php_gd2.dll >> c:\tools\%PHP_DIR%\php.ini &&
48+
echo extension=php_ftp.dll >> c:\tools\%PHP_DIR%\php.ini &&
49+
echo extension=php_com_dotnet.dll >> c:\tools\%PHP_DIR%\php.ini &&
50+
echo memory_limit=256M >> c:\tools\%PHP_DIR%\php.ini &&
51+
echo curl.cainfo=C:\tools\cacert.pem >> c:\tools\%PHP_DIR%\php.ini
52+
)
5353
- cd c:\tools
5454
- appveyor DownloadFile https://curl.haxx.se/ca/cacert.pem
5555

5656
- cd c:\projects\wmi-scripting
5757

5858
- IF "%DEPLOY_DOCS%" == "true" (
59-
- ps: >-
60-
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
61-
$fileContent += $env:priv_key.Replace(' ', "`n")
62-
$fileContent += "`n-----END RSA PRIVATE KEY-----`n"
63-
Set-Content $env:userprofile\.ssh\id_rsa $fileContent
64-
- git submodule update --init --recursive
65-
- git config --global user.email "%GIT_EMAIL%"
66-
- git config --global user.name "%GIT_EMAIL%"
67-
- yarn install
68-
- yarn docs:deploy:windows:ci
59+
powershell -command "
60+
$fileContent = `"-----BEGIN RSA PRIVATE KEY-----`n`"
61+
$fileContent += $env:priv_key.Replace(' ', `"`n`")
62+
$fileContent += `"`n-----END RSA PRIVATE KEY-----`n`"
63+
Set-Content $env:userprofile\.ssh\id_rsa $fileContent" &&
64+
git submodule update --init --recursive &&
65+
git config --global user.email "%GIT_EMAIL%" &&
66+
git config --global user.name "%GIT_EMAIL%" &&
67+
yarn install &&
68+
yarn docs:deploy:windows:ci
6969
)
7070

7171
# - ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"

0 commit comments

Comments
 (0)