forked from GT-NucleicAcids/pnab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
58 lines (48 loc) · 1.24 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
platform:
- x64
image:
- Visual Studio 2015
configuration:
- Release
install:
- set CONDA_ENV=build
- C:\Miniconda3-x64\Scripts\activate base
- conda config --set always_yes yes
- conda create --channel conda-forge
--name %CONDA_ENV%
python=3.8
numpy
cmake
openbabel
eigen
pybind11
pyyaml
pytest
- conda clean --all
- conda activate %CONDA_ENV%
- conda list
before_build:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
- set SOURCE_FOLDER=%APPVEYOR_BUILD_FOLDER%
- set BUILD_FOLDER=%SOURCE_FOLDER%\build
build_script:
- cmake -G "NMake Makefiles" -B%BUILD_FOLDER% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DOPENBABEL_DIR="%CONDA_PREFIX%"
- cd build
- nmake
after_build:
- XCOPY /Y bind* ..\pnab
- cd ..
before_test:
- set SP_DIR="%CONDA_PREFIX%\Lib\site-packages"
- XCOPY /E /I /Y pnab "%SP_DIR%\pnab"
- XCOPY /E /I /Y tests "%SP_DIR%\pnab\tests"
- dir "%SP_DIR%\pnab"
- cd tests
test_script:
- set BABEL_DATADIR=%CONDA_PREFIX%\share\openbabel
- pytest -s
cache:
- C:\Miniconda3-x64\pkgs
branches:
only:
- master