Use precompiled pandoc for building documentation (#353)

* Use precompiled pandoc for building documentation

Instead of building pandoc from source, we now just use Chocolately to
install a precompiled version of pandoc. This speeds up documentation
builds and prevents random breakage due to Hackage package changes.

NB: The Chocolately Pandoc 1.19.2.1 package is currently broken. It
appears to have a pre-release Pandoc 2.0 executable that doesn't
understand all the command line flags that 1.x does (e.g., --smart).

Fixes https://github.com/Microsoft/bond/issues/341

* Match Window's default path building order
This commit is contained in:
Christopher Warrington 2017-03-09 16:32:22 -08:00 коммит произвёл Chad Walters
Родитель 1426db8e9a
Коммит 3708a3b8b0
1 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -69,19 +69,29 @@
choco install haskellplatform -version 2014.2.0.0 -y
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
# choco install updated the path, so re-read them from the registry and reset $env:path
$machinePath = [System.Environment]::GetEnvironmentVariable("Path","Machine")
$userPath = [System.Environment]::GetEnvironmentVariable("Path","User")
$env:Path = "$machinePath;$userPath"
cabal update
if ($env:BOND_BUILD -eq "Doc") {
cabal install -j pandoc --constraint='mtl<=2.1.3.1'
choco install pandoc --version 1.19.2 -y
choco install doxygen.install -y
}
$machinePath = [System.Environment]::GetEnvironmentVariable("Path","Machine")
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
$userPath = [System.Environment]::GetEnvironmentVariable("Path","User")
$env:Path = "$machinePath;$userPath"
}
cache:
- cs\packages -> cs\test\core\packages.config