appveyor.yml 2.69 KB
Newer Older
1
version: 1.0.{build}
Laurent Claustre's avatar
Laurent Claustre committed
2 3 4 5 6 7 8

os: Visual Studio 2015

platform: x64

configuration: Release

9 10
branches:
  only:
11
    - cmake
12
    
Laurent Claustre's avatar
Laurent Claustre committed
13 14 15
matrix:
  fast_finish: false # set this flag to immediately finish build once one of the jobs fails.

16 17
environment:
  matrix:
18 19 20 21 22 23
# for further test with nmake
#   - PLATFORM: x64
#     BUILDER: "CMake"
#     CONFIGURATION: "Release"
#     GENERATOR: "NMake Makefiles"
#     PYTHON: "C:\\Python27-x64"
Laurent Claustre's avatar
Laurent Claustre committed
24
   - PLATFORM: x64
25
     BUILDER: "CMake"
Laurent Claustre's avatar
Laurent Claustre committed
26 27 28 29
     CONFIGURATION: "Release"
     GENERATOR: "Visual Studio 12 2013 Win64"
     PYTHON: "C:\\Python27-x64"
   - PLATFORM: x86
30
     BUILDER: "CMake"
Laurent Claustre's avatar
Laurent Claustre committed
31 32 33
     CONFIGURATION: "Release"
     GENERATOR: "Visual Studio 12 2013"
     PYTHON: "C:\\Python27"
34

Laurent Claustre's avatar
Laurent Claustre committed
35 36 37 38
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
39 40
  - if [%PlATFORM%]==[x86] call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
  - set PATH=%PYTHON%;%PATH% 
Laurent Claustre's avatar
Laurent Claustre committed
41
  
42
install:
43
  - ps: 'Write-Host "Installing submodule third-party/Processlib :" -ForegroundColor Magenta'
44 45
  - git submodule init third-party/Processlib
  - git submodule update
46
  - git submodule foreach "git checkout cmake"
47
  - ps: 'Write-Host "Installing GSL :" -ForegroundColor Magenta'
48
  - if [%PLATFORM%]==[x64] (
49
      appveyor.exe DownloadFile  http://ftp.esrf.fr/pub/bliss/lima/gsl-1.15-dev-win64.zip &&
50
      7z.exe x gsl-1.15-dev-win64.zip -o"c:\Program Files\gsl-1.15-win64"
51
   )
52
  - if [%PLATFORM%]==[x86] (
53 54
      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"
55
   )
56
  - ps: 'Write-Host "Installing NUMPY :" -ForegroundColor Magenta'
Laurent Claustre's avatar
Laurent Claustre committed
57
  - "%PYTHON%/Scripts/pip.exe install numpy"
58 59 60 61 62 63 64 65
  - 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 ..
66
 
Laurent Claustre's avatar
Laurent Claustre committed
67
before_build:
68
  - ps: 'Write-Host "Running $env:BUILDER with $env:GENERATOR :" -ForegroundColor Magenta'
Laurent Claustre's avatar
Laurent Claustre committed
69 70
  - mkdir build
  - cd build
71
  - cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLIMACAMERA_SIMULATOR=1  -DLIMA_ENABLE_PYTHON=1 -DLIMA_ENABLE_TESTS=1 ..
Laurent Claustre's avatar
Laurent Claustre committed
72

73
build_script:
74
  - ps: 'Write-Host "Running $env:BUILDER :" -ForegroundColor Magenta'
Laurent Claustre's avatar
Laurent Claustre committed
75
  - cmake --build . --config %CONFIGURATION%
76
    
77 78

test_script:
79
  - ps: 'Write-Host "Running tests :" -ForegroundColor Magenta'
80
#  - ctest -VV --debug --output-on-failure -C %CONFIGURATION%