-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor.yml
34 lines (28 loc) · 892 Bytes
/
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
image: Visual Studio 2017
clone_depth: 5
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- C:\Miniconda36-x64\Scripts\activate base
- conda install --yes numpy pytest
- conda list
before_build:
- set SOURCE_FOLDER=%APPVEYOR_BUILD_FOLDER%
- set BUILD_FOLDER=%SOURCE_FOLDER%\build
- set INSTALL_FOLDER=%SOURCE_FOLDER%\install
- mkdir %BUILD_FOLDER% & cd %BUILD_FOLDER%
- cmake -A x64
-DCMAKE_C_FLAGS="/wd4018 /wd4101 /wd4996"
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=true
-DCMAKE_INSTALL_PREFIX=%INSTALL_FOLDER%
-DINSTALL_PYMOD=ON
..
build_script:
- cmake --build .
after_build:
- cmake --build . --target install
before_test:
- cd ..
- set PYTHONPATH=%INSTALL_FOLDER%\lib
test_script:
- set GAU2GRID_FORCE_C_TEST=1
- pytest -rws -v %INSTALL_FOLDER%