appveyor clones opm-data

This commit is contained in:
Jørgen Kvalsvik 2016-10-23 16:17:39 +02:00
parent bd5c92737e
commit df1c2448de

View File

@ -18,11 +18,16 @@ environment:
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/"
DATA_ROOT: "C:/projects/opm-parser/opm-data/"
ERT_ROOT: "C:/Program Files/ERT"
GEN: "Visual Studio 14 2015 Win64"
cache:
- opm-data
build_script:
- git clone https://github.com/OPM/opm-common.git
- git -C opm-data pull || git clone https://github.com/OPM/opm-data.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
@ -31,6 +36,6 @@ build_script:
- 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 C:\projects\opm-parser -G"%GEN%" %BOOST_OPTIONS% -DOPM_DATA_ROOT=%DATA_ROOT% -DOPM_COMMON_ROOT="%COMMON_ROOT%" -DCMAKE_PREFIX_PATH="%ERT_ROOT%" -DCMAKE_BUILD_TYPE=%configuration%
- cmake --build . --config %configuration%
- ctest -C %configuration% --output-on-failure