-
Notifications
You must be signed in to change notification settings - Fork 71
/
appveyor.yml
80 lines (68 loc) · 2.69 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
68
69
70
71
72
73
74
75
76
77
78
79
80
version: 1.0.{build}
os: Visual Studio 2015
platform: x64
configuration: Release
branches:
only:
- cmake
matrix:
fast_finish: false # set this flag to immediately finish build once one of the jobs fails.
environment:
matrix:
# for further test with nmake
# - PLATFORM: x64
# BUILDER: "CMake"
# CONFIGURATION: "Release"
# GENERATOR: "NMake Makefiles"
# PYTHON: "C:\\Python27-x64"
- PLATFORM: x64
BUILDER: "CMake"
CONFIGURATION: "Release"
GENERATOR: "Visual Studio 12 2013 Win64"
PYTHON: "C:\\Python27-x64"
- PLATFORM: x86
BUILDER: "CMake"
CONFIGURATION: "Release"
GENERATOR: "Visual Studio 12 2013"
PYTHON: "C:\\Python27"
init:
- ps: 'Write-Host "Building LIMA branch: $env:APPVEYOR_REPO_BRANCH" -ForegroundColor Magenta'
- if [%PLATFORM%]==[x64] "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if [%PLATFORM%]==[x64] call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
- if [%PlATFORM%]==[x86] call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
- set PATH=%PYTHON%;%PATH%
install:
- ps: 'Write-Host "Installing submodule third-party/Processlib :" -ForegroundColor Magenta'
- git submodule init third-party/Processlib
- git submodule update
- git submodule foreach "git checkout cmake"
- ps: 'Write-Host "Installing GSL :" -ForegroundColor Magenta'
- if [%PLATFORM%]==[x64] (
appveyor.exe DownloadFile http://ftp.esrf.fr/pub/bliss/lima/gsl-1.15-dev-win64.zip &&
7z.exe x gsl-1.15-dev-win64.zip -o"c:\Program Files\gsl-1.15-win64"
)
- if [%PLATFORM%]==[x86] (
appveyor.exe DownloadFile http://ftp.esrf.fr/pub/bliss/lima/gsl-1.8-lib.zip &&
7z.exe x gsl-1.8-lib.zip -o"c:\Program Files\gsl-1.8-win32"
)
- ps: 'Write-Host "Installing NUMPY :" -ForegroundColor Magenta'
- "%PYTHON%/Scripts/pip.exe install numpy"
- ps: 'Write-Host "Installing SIP" -ForegroundColor Magenta'
- appveyor.exe DownloadFile https://sourceforge.net/projects/pyqt/files/sip/sip-4.18/sip-4.18.zip
- 7z.exe x sip-4.18.zip
- cd sip-4.18
- python.exe configure.py
- nmake
- nmake install
- cd ..
before_build:
- ps: 'Write-Host "Running $env:BUILDER with $env:GENERATOR :" -ForegroundColor Magenta'
- mkdir build
- cd build
- cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLIMACAMERA_SIMULATOR=1 -DLIMA_ENABLE_PYTHON=1 -DLIMA_ENABLE_TESTS=1 ..
build_script:
- ps: 'Write-Host "Running $env:BUILDER :" -ForegroundColor Magenta'
- cmake --build . --config %CONFIGURATION%
test_script:
- ps: 'Write-Host "Running tests :" -ForegroundColor Magenta'
# - ctest -VV --debug --output-on-failure -C %CONFIGURATION%