blob: c34200155c39fa8833d25f5944832101d3328ef3 (
plain)
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
|
environment:
matrix:
- BUILD_SYSTEM: CMake
GENERATOR: Visual Studio 14 2015 Win64
- BUILD_SYSTEM: CMake
GENERATOR: Visual Studio 14 2015
- BUILD_SYSTEM: CMake
GENERATOR: Visual Studio 12 2013 Win64
- BUILD_SYSTEM: CMake
GENERATOR: Visual Studio 12 2013
- BUILD_SYSTEM: Python
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
- BUILD_SYSTEM: Python
PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "32"
- BUILD_SYSTEM: Python
PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
- BUILD_SYSTEM: Python
PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
install:
- ps: |
if ($env:BUILD_SYSTEM -eq "Python") {
# prepend Python to the PATH
$env:Path = $env:PYTHON + ';' + $env:PYTHON + '\\Scripts;' + $env:PATH
# upgrade pip to avoid out-of-date warnings
pip install --disable-pip-version-check --user --upgrade pip
# install/upgrade setuptools to build packages
pip install --upgrade setuptools
}
before_build:
- ps: |
if ($env:BUILD_SYSTEM -eq "CMake") {
mkdir builddir
cd builddir
cmake -G "$env:GENERATOR" ..
}
build_script:
- ps: |
if ($env:BUILD_SYSTEM -eq "CMake") {
cmake --build . --config Debug
}
test_script:
- if "%BUILD_SYSTEM%" == "CMake" ( ctest --output-on-failure --interactive-debug-mode 0 -C Debug )
- if "%BUILD_SYSTEM%" == "Python" ( python setup.py test )
|