/
appveyor.yml
44 lines (36 loc) · 1.29 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# AppVeyor.com is a Continuous Integration service to build and run tests under Windows
build: off
environment:
matrix:
# VTK is incompatible with windows python 2.7
# this is because vtk-v8.x.x requres c++11 which is incompatible
# - PYTHON_VERSION: 2.7
# CONDA: C:\Miniconda
- PYTHON_VERSION: 3.6
CONDA: C:\Miniconda36
image: Visual Studio 2015
platform:
- x64
- x86
init:
- ps: if ($Env:PLATFORM -eq "x64") { $Env:CONDA = "${Env:CONDA}-x64" }
- ps: Write-Host $Env:PYTHON_VERSION
- ps: Write-Host $Env:CONDA
- ps: Write-Host $Env:PLATFORM
install:
# Load the conda root environment, configure and install some packages
- '"%CONDA%\Scripts\activate.bat"'
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
# Upgrade pip
- python -m pip install --upgrade pip
# Handle VTK if archetecture requires conda, else let setup.py install via pip
- cmd: if "%PLATFORM%" == "x86" (conda install vtk) else (echo "setup.py should install VTK")
# Install omfvista
- python setup.py install
test_script:
- python -c "import vtk; print(vtk.VTK_VERSION)"
- python -c "import pyvista; print(pyvista.__version__)"
- python -c "import omfvista; print('omfvista Version ', omfvista.__version__)"
- python tests/__main__.py