File: appveyor.yml

package info (click to toggle)
gau2grid 2.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 688 kB
  • sloc: python: 5,326; makefile: 31; sh: 24
file content (34 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (4)
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%