Commit b6fc1eaf authored by Laurent Belcour's avatar Laurent Belcour

[AppVeyor] Updating the script

parent c56149ae
......@@ -24,9 +24,8 @@ install:
- cd external\eigen3
- mkdir build & cd build
- cmake .. -DCMAKE_INSTALL_PREFIX="..\..\build" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles"
- nmake install
- nmake /NOLOGO install
- cd ..\..\..\
- dir
before_build:
# BOOST Python require x86 compilation
......@@ -40,39 +39,40 @@ build_script:
- git submodule init
- git submodule update
# Build externals
# 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
## Build externals
# SCons: First we need to build ALTA to get Eigen
- if "%builder%" == "scons" (
scons --cfg=./configs/scons/config-windows-appveyor.py &
appveyor PushArtifact config.log
)
# Install CERES
# - cd external
# - git clone https://ceres-solver.googlesource.com/ceres-solver
# - cd ceres-solver
# - mkdir build-ceres
# - cd build-ceres
# - 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"
# - nmake install
# - cd ..\..\..
# - dir
# Rebuild with CERES and Python
- cd external
- git clone https://ceres-solver.googlesource.com/ceres-solver
- cd ceres-solver
- mkdir build-ceres
- cd build-ceres
- 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"
- nmake /NOLOGO install
- cd ..\..\..
# (re)-Build with CERES and Python
- if "%builder%" == "scons" (
scons --cfg=./configs/scons/config-windows-appveyor.py &
appveyor PushArtifact config.log
) else (
mkdir build &
cd build &
cmake .. -DEIGEN3_INCLUDE_DIR="external/build/include/eigen3" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" &
nmake &
cmake .. -DEIGEN3_INCLUDE_DIR="external/build/include/eigen3" -Wdev -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" &
nmake /NOLOGO &
cd ..
)
# Generate zip with all compilation elements
# TODO: This export is not working
#- appveyor PushArtifact 'build/*'
# Generate product
- makensis sources\scripts\installer.nsi
- appveyor PushArtifact sources\scripts\ALTA.exe
......@@ -84,20 +84,27 @@ test_script:
- ./setpath.bat
- if "%builder%" == "scons" (
scons --cfg=./configs/scons/config-windows-appveyor.py tests
appveoyr PushArtifact build\sources\tests\*.log
) else
cd build &
nmake test &
appveyor PushArtifact Testing\Temporary\LastTest.log &
cd ..
)
# Outputed files
#
artifacts:
- path: sources\scripts\ALTA.exe
name: ALTA
- path: config.log
name: Log
on_failure:
- ls
- if "%builder%" == "cmake" (
more Testing\Temporary\LastText.log
)
name: SconsLog
- path: 'build\sources\tests\*.log'
name: SConsTestsLog
type: zip
- path: build\Testing\Temporary\LastTest.log
name: CMakeTestsLog
# - path: 'build/*'
# name: ALTAZip
# type: zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment