Replace the constantly breaking pandoc from Chocolatey
with a simple PowerShell script using the GitHub API.
This commit is contained in:
65
ConvertFrom-Markdown.ps1
Normal file
65
ConvertFrom-Markdown.ps1
Normal file
File diff suppressed because one or more lines are too long
@@ -10,8 +10,6 @@ install:
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
- thirdparty\download -> thirdparty\fetch-thirdparty-deps.ps1
|
- thirdparty\download -> thirdparty\fetch-thirdparty-deps.ps1
|
||||||
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
||||||
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- make dependencies
|
- make dependencies
|
||||||
@@ -52,14 +50,9 @@ test_script:
|
|||||||
- nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor
|
- nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
|
|
||||||
after_test:
|
after_test:
|
||||||
- choco install pandoc -y --force
|
|
||||||
- '"%ProgramFiles(x86)%\Pandoc\pandoc.exe" -o README.html README.md'
|
|
||||||
- '"%ProgramFiles(x86)%\Pandoc\pandoc.exe" -o CONTRIBUTING.html CONTRIBUTING.md'
|
|
||||||
- appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md
|
- appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md
|
||||||
- '"%ProgramFiles(x86)%\Pandoc\pandoc.exe" -o Changelog.html CHANGELOG.md'
|
|
||||||
- make docs
|
- make docs
|
||||||
- '"%ProgramFiles(x86)%\Pandoc\pandoc.exe" -o DOCUMENTATION.html DOCUMENTATION.md'
|
- ps: dir *.md | % {gc $_ -Raw | .\ConvertFrom-Markdown.ps1 | Out-File -FilePath "$($_.Name.TrimEnd(".md")).html"}
|
||||||
- '"%ProgramFiles(x86)%\Pandoc\pandoc.exe" -o Lua-API.html Lua-API.md'
|
|
||||||
- ps: cp OpenRA.Game/OpenRA.ico .
|
- ps: cp OpenRA.Game/OpenRA.ico .
|
||||||
- '"C:\Program Files (x86)\NSIS\makensis.exe" /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /V3 packaging/windows/OpenRA.nsi'
|
- '"C:\Program Files (x86)\NSIS\makensis.exe" /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /V3 packaging/windows/OpenRA.nsi'
|
||||||
- if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME%
|
- if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME%
|
||||||
|
|||||||
Reference in New Issue
Block a user