.appveyor.yml 1.85 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
os:
  - Visual Studio 2015

build:
  verbosity: detailed

install:
  - SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
  - python --version
  - python -m ensurepip
11 12 13
  - pip install -U setuptools
  - pip install -U wheel
  - pip install scons==2.4.1
14 15 16
  - cinst nsis.portable

before_build:
17
  # BOOST Python require x86 compilation
18
  - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
19
  #- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
20

21 22
# Build script
#
23
build_script:
24
   # Build first time
25 26 27
  - git submodule init
  - git submodule update

28
  # Build externals
29 30 31 32 33 34
  # First we need to build ALTA to get Eigen
  #- dir C:\Python27\libs
  #- dir C:\Libraries\boost_1_63_0
  #- dir C:\Libraries\boost_1_63_0\lib64-msvc-14.0
  - scons --cfg=./configs/scons/config-windows-appveyor.py
  - appveyor PushArtifact config.log
35

36
  # Install CERES
37
  - cd external
38 39
  - git clone https://ceres-solver.googlesource.com/ceres-solver
  - cd ceres-solver
40 41
  - mkdir build-ceres
  - cd build-ceres
42
  - cmake .. -DBUILD_SHARED_LIBS=ON -DMINIGLOG=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX="..\..\build" -DEIGEN_INCLUDE_DIR="..\..\build\include" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles"
43 44 45
  - nmake install
  - cd ..\..\..

46 47 48
  # Rebuild with CERES and Python
  - scons --cfg=./configs/scons/config-windows-appveyor.py
  #- scons --cfg=./configs/scons/config-windows-appveyor.py python
49
  - appveyor PushArtifact config.log
50

51
  # Generate product
52 53
  - makensis sources\scripts\installer.nsi
  - appveyor PushArtifact sources\scripts\ALTA.exe
54 55 56 57 58


# Perform custom tests
#
test_script:
59 60 61 62 63 64 65 66 67
  - ./setpath.bat
  - scons --cfg=./configs/scons/config-windows-appveyor.py tests
  #- scons --cfg=./configs/scons/config-windows-appveyor.py python tests

artifacts:
   - path: sources\scripts\ALTA.exe
     name: ALTA
   - path: config.log
     name: Log