2018-10-28 15:05:59 +00:00
|
|
|
# AppVeyor.com is a Continuous Integration service to build and run tests under Windows
|
2018-03-04 21:04:42 +01:00
|
|
|
|
|
|
|
environment:
|
|
|
|
|
2018-10-28 15:05:59 +00:00
|
|
|
global:
|
|
|
|
PYTHON: "C:\\conda"
|
|
|
|
MINICONDA_VERSION: "latest"
|
|
|
|
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
|
|
|
|
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
|
|
|
|
# of 32 bit and 64 bit builds are needed, move this
|
|
|
|
# to the matrix section.
|
|
|
|
CONDA_CHANNELS: "conda-forge"
|
|
|
|
CONDA_DEPENDENCIES: "sphinx werkzeug alabaster invoke graphviz nbsphinx"
|
|
|
|
PIP_DEPENDENCIES: "sphinx-automodapi"
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- PYTHON_VERSION: "2.7"
|
|
|
|
- PYTHON_VERSION: "3.5"
|
|
|
|
- PYTHON_VERSION: "3.6"
|
|
|
|
- PYTHON_VERSION: "3.7"
|
|
|
|
|
|
|
|
build: false
|
2018-03-04 21:04:42 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
2018-10-28 15:05:59 +00:00
|
|
|
os: Visual Studio 2017
|
2018-10-27 11:15:43 +01:00
|
|
|
|
2018-03-04 21:04:42 +01:00
|
|
|
install:
|
2018-10-28 15:05:59 +00:00
|
|
|
- ps: >-
|
|
|
|
if (-Not (Test-Path "C:\Program Files\Pandoc\")) {
|
|
|
|
cinst pandoc --no-progress
|
|
|
|
cinst graphviz --no-progress
|
|
|
|
}
|
|
|
|
- ps: $env:Path += ";C:\Program Files\Pandoc\"
|
|
|
|
- git clone git://github.com/astropy/ci-helpers.git
|
|
|
|
- powershell ci-helpers/appveyor/install-miniconda.ps1
|
|
|
|
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
|
|
|
|
- activate test
|
|
|
|
- pip install -e .
|
2018-03-04 21:04:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
test_script:
|
2018-10-28 15:05:59 +00:00
|
|
|
- python setup.py build_sphinx
|
2018-03-04 21:31:09 +01:00
|
|
|
- ps: cd docs
|
|
|
|
- ablog build -T
|
|
|
|
- ablog build -b latex -T -d .doctrees -w _latex
|
|
|
|
- ablog build -T -b json
|
|
|
|
- ablog build -T -b pickle
|