forked from biosustain/marsi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
72 lines (57 loc) · 1.98 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
PIP_CACHE_DIR: "pip_cache"
POSTGRES_PATH: C:\Program Files\PostgreSQL\9.4
PGUSER: postgres
PGPASSWORD: Password12!
matrix:
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7.12"
PYTHON_ARCH: "64"
CONDA: true
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5.2"
PYTHON_ARCH: "64"
CONDA: true
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.6.0"
PYTHON_ARCH: "64"
CONDA: true
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
services:
- postgresql94
clone_depth: 25
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%bit"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%PYTHON_ARCH%"=="64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
cache:
- pip_cache -> appveyor.yml
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%POSTGRES_PATH%\\bin;%PATH%"
- "SET PGUSER=postgres"
- "SET PGPASSWORD=Password12!"
- "SET DISTUTILS_USE_SDK=1"
- cmd: conda config --set always_yes yes --set changeps1 no
- cmd: conda create -n test_env python=%PYTHON_VERSION%
- cmd: activate test_env
- cmd: conda install -q pip
- cmd: conda install -q -c rdkit rdkit
- cmd: conda install -q -c openbabel openbabel
- cmd: pip install pytest pytest-cov pytest-benchmark
- cmd: pip install cython
- cmd: pip install .
build: off
before_test:
- cmd: psql -c "CREATE DATABASE marsitest;"
- cmd: marsi db migrate
- cmd: python bin/restore_db.py
- cmd: psql -d marsitest -c "SELECT COUNT(*) FROM metabolites;"
test_script:
- pytest tests