forked from project-gemmi/gemmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
68 lines (64 loc) · 2.49 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
-
version: '{branch}-{build}'
environment:
matrix:
- arch: x64
CMAKE_GENERATOR: Visual Studio 17 2022
CMAKE_CONFIG: Release
CMAKE_ARGS: -DCMAKE_CXX_STANDARD=20 -DUSE_PYTHON=1 -DPython_EXECUTABLE="C:\\Python310-x64\\python.exe"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PY_PYTHON: 3.10
USE_PIP: 1
- arch: x64
CMAKE_GENERATOR: Visual Studio 16 2019
CMAKE_CONFIG: RelWithDebInfo
CMAKE_ARGS: -DCMAKE_CXX_STANDARD=11 -DUSE_PYTHON=1 -DPython_EXECUTABLE="C:\\Python38-x64\\python.exe"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PY_PYTHON: 3.8
USE_PIP: 1
- arch: x86
CMAKE_GENERATOR: Visual Studio 15 2017
CMAKE_CONFIG: MinSizeRel
CMAKE_ARGS: -DUSE_PYTHON=1 -DPython_EXECUTABLE="C:\\Python36\\python.exe"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PY_PYTHON: 3.6-32
- arch: x64
CMAKE_GENERATOR: MSYS Makefiles
CMAKE_ARGS: -DCMAKE_CXX_STANDARD=14
COMPILER: MinGW64-gcc-8.1.0
BINDIR: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\msys64\usr\bin
CMAKE_CONFIG: Release
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PY_PYTHON: 3.9-32
USE_SETUP_PY: 1
build_script:
- if defined BINDIR (set "PATH=%BINDIR%;%PATH%")
- path
- cmake --version
- if defined CMAKE_ARGS (git clone --depth=1 -b stable https://github.com/pybind/pybind11.git)
- cmake -G "%CMAKE_GENERATOR%" %CMAKE_ARGS% .
- cmake --build . --config %CMAKE_CONFIG%
- cmake --build . --config %CMAKE_CONFIG% --target check
- cmake --install . --config %CMAKE_CONFIG%
- if exist gemmi.exe strip gemmi.exe
- if exist "%CMAKE_CONFIG%\gemmi.exe" copy "%CMAKE_CONFIG%\gemmi.exe" . /y
- dir gemmi.exe
- if exist "%CMAKE_CONFIG%\gemmi*.pyd" (copy "%CMAKE_CONFIG%\gemmi*.pyd" . /y)
- dir C:\mingw-w64\
- py -c "import sys; print(sys.version+'\n'+sys.executable)"
- if defined USE_SETUP_PY (py setup.py install)
- cmd: '"%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %ARCH%'
test_script:
- ctest -C "%CMAKE_CONFIG%" --output-on-failure
- py -m pip install numpy
- if defined USE_PIP (py -m pip install pandas)
- set PYTHONPATH=.
- py -m unittest discover -v -s tests/
- if "%PY_PYTHON%"=="3.6-32" (appveyor exit)
- cd docs
- set PYTHONPATH=..
- py -m pip install --no-warn-script-location sphinx
- py -m sphinx -M doctest . _build -n -E
artifacts:
- path: gemmi.exe
- path: gemmi*.pyd