forked from iiasa/ixmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (33 loc) · 1.34 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
# Continuous integration procedure for AppVeyor
# Based on https://github.com/rmcgibbo/python-appveyor-conda-example
environment:
matrix:
- PYTHON_VERSION: "2.7"
MINICONDA: "C:\\Miniconda-x64"
PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
MINICONDA: "C:\\Miniconda36-x64"
PYTHON_ARCH: "64"
init:
- "ECHO %PYTHON_VERSION% %MINICONDA%"
install:
# these correspond to folder naming of miniconda installs on appveyor. See
# https://www.appveyor.com/docs/installed-software#python
- if "%PYTHON_VERSION%" == "3.6" set "BASE_PYTHON_VERSION=36"
- if "%PYTHON_ARCH%" == "64" set "ARCH_LABEL=-x64"
# These are already installed on appveyor. Update them.
- set "CONDA_ROOT=C:\Miniconda%BASE_PYTHON_VERSION%%ARCH_LABEL%"
- set "PATH=%CONDA_ROOT%;%CONDA_ROOT%\Scripts;%CONDA_ROOT%\Library\bin;%PATH%"
# Dependencies and package install
- ps: Start-FileDownload 'https://d37drm4t2jghv5.cloudfront.net/distributions/25.1.1/windows/windows_x64_64.exe'
- windows_x64_64.exe /SP- /VERYSILENT /NORESTART /DIR=.\gams /NOICONS
- "SET PATH=%cd%\\gams;%PATH%"
- conda install --yes -c conda-forge ixmp xlsxwriter xlrd
- conda remove --force --yes ixmp
- python setup.py install
build: false
test_script:
- conda install --yes -c conda-forge pytest
- pytest -v tests
on_success:
- echo Build succesful!