version: 1.0.{build} clone_depth: 1 configuration: - Debug - Release os: Visual Studio 2015 image: Visual Studio 2015 platform: - x64 environment: BOOST_ROOT: C:\Libraries\boost_1_59_0\boost BOOST_INCLUDEDIR: C:\Libraries\boost_1_59_0 BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0 BOOST_FLAGS: -DBoost_USE_MULTITHREAD=ON -DBUILD_SHARED_LIBS=OFF -DBoost_USE_STATIC_LIBS=TRUE -DBOOST_ALL_DYN_LINK=OFF BOOST_OPTIONS: -DBOOST_ROOT=%BOOST_ROOT% -DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -DBOOST_INCLUDEDIR=%BOOST_INCLUDEDIR% %BOOST_FLAGS% COMMON_ROOT: "C:/Program Files/Project/share/opm/" ERT_ROOT: "C:/Program Files/ERT" GEN: "Visual Studio 14 2015 Win64" build_script: - git clone https://github.com/OPM/opm-common.git - git clone https://github.com/Ensembles/ert.git - cd ert - cmake C:\projects\opm-parser\ert -G"%GEN%" -DCMAKE_BUILD_TYPE=%configuration% -DERT_BUILD_CXX=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_PYTHON=OFF - cmake --build . --target install --config %configuration% - cd ../opm-common - cmake C:\projects\opm-parser\opm-common -G"%GEN%" %BOOST_OPTIONS% -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_TESTING=OFF - cmake --build . --config %configuration% --target install - cd .. - cmake C:\projects\opm-parser -G"%GEN%" %BOOST_OPTIONS% -DOPM_COMMON_ROOT="%COMMON_ROOT%" -DCMAKE_PREFIX_PATH="%ERT_ROOT%" -DCMAKE_BUILD_TYPE=%configuration% - cmake --build . --config %configuration% - ctest -C %configuration% --output-on-failure