Created
February 27, 2018 08:15
-
-
Save wyrover/af34d2e987c979968417d6f00d9872b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1.0.{build} | |
branches: | |
only: | |
- master | |
platform: x64 | |
build: | |
verbosity: normal | |
environment: | |
BOOST_VERSION: default | |
CMAKE_OPTIONS: -DUSE_TESTS=On -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DMSVC_BUILD_THREADS=8 | |
CMAKE_BUILD_OPTIONS: --config %CONFIGURATION% | |
matrix: | |
############################################################################ | |
# Visual Studio 2013 | |
############################################################################ | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=*type_utils* | |
VSINSTALL: "Microsoft Visual Studio 12.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Debug | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=*type_utils* | |
VSINSTALL: "Microsoft Visual Studio 12.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Debug | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | |
BUILD_TYPE: shared | |
VSINSTALL: "Microsoft Visual Studio 12.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | |
BUILD_TYPE: static | |
VSINSTALL: "Microsoft Visual Studio 12.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Release | |
############################################################################ | |
# Visual Studio 2015 | |
############################################################################ | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=*type_utils* | |
VSINSTALL: "Microsoft Visual Studio 14.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Debug | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=*type_utils* | |
VSINSTALL: "Microsoft Visual Studio 14.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Debug | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=fs_index_test*:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio 14.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=*:-:fs_index_test*:-:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio 14.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=fs_index_test*:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio 14.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=*:-:fs_index_test*:-:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio 14.0\\VC" | |
BOOST_ROOT: C:/Libraries/boost_1_58_0 | |
CONFIGURATION: Release | |
############################################################################ | |
# Visual Studio 2017 | |
############################################################################ | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=*type_utils* | |
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" | |
BOOST_ROOT: C:/Libraries/boost_1_64_0 | |
CONFIGURATION: Debug | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=*type_utils* | |
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" | |
BOOST_ROOT: C:/Libraries/boost_1_64_0 | |
CONFIGURATION: Debug | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=fs_index_test*:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" | |
BOOST_ROOT: C:/Libraries/boost_1_64_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
BUILD_TYPE: shared | |
TEST_OPTIONS: --gtest_filter=*:-:fs_index_test*:-:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" | |
BOOST_ROOT: C:/Libraries/boost_1_64_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=fs_index_test*:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" | |
BOOST_ROOT: C:/Libraries/boost_1_64_0 | |
CONFIGURATION: Release | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
BUILD_TYPE: static | |
TEST_OPTIONS: --gtest_filter=*:-:fs_index_test*:-:mmap_index_test* | |
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" | |
BOOST_ROOT: C:/Libraries/boost_1_64_0 | |
CONFIGURATION: Release | |
install: | |
############################################################################ | |
# All the dependencies are installed in %APPVEYOR_BUILD_FOLDER%\deps | |
############################################################################ | |
- set DEPS_DIR=%APPVEYOR_BUILD_FOLDER%\deps | |
- mkdir %DEPS_DIR% | |
############################################################################ | |
# Install snowball | |
############################################################################ | |
- set SNOWBALL_DIR=%DEPS_DIR%\snowball | |
- set SNOWBALL_URL="https://github.com/snowballstem/snowball.git" | |
- cd %DEPS_DIR% | |
- appveyor-retry git clone --quiet %SNOWBALL_URL% %SNOWBALL_DIR% | |
- cd %SNOWBALL_DIR% | |
- git reset --hard 5137019d68befd633ce8b1cd48065f41e77ed43e | |
- set SNOWBALL_ROOT=%SNOWBALL_DIR% | |
############################################################################ | |
# Install gtest | |
############################################################################ | |
- set GTEST_DIR=%DEPS_DIR%\gtest | |
- set GTEST_URL="https://github.com/google/googletest.git" | |
- cd %DEPS_DIR% | |
- appveyor-retry git clone --depth 1 --recursive --quiet %GTEST_URL% %GTEST_DIR% || exit 1 | |
- cd %GTEST_DIR% | |
- mkdir build && cd build | |
- cmake -g %APPVEYOR_BUILD_WORKER_IMAGE% -Ax64 -Dgtest_force_shared_crt=ON -DBUILD_GTEST=ON -DBUILD_GMOCK=OFF -DCMAKE_DEBUG_POSTFIX="" .. | |
- cmake --build . %CMAKE_BUILD_OPTIONS% | |
- cmake --install . | |
- mkdir ..\googletest\lib | |
- move /Y googletest\%CONFIGURATION%\* ..\googletest\lib | |
- set GTEST_ROOT=%GTEST_DIR%\googletest | |
############################################################################ | |
# Install ICU | |
############################################################################ | |
- set ICU_DIR=%DEPS_DIR%\icu | |
- mkdir %ICU_DIR% && cd %ICU_DIR% | |
- set ICU_URL="https://kent.dl.sourceforge.net/project/icu/ICU4C/57.1/icu4c-57_1-Win64-msvc10.zip" | |
- appveyor DownloadFile %ICU_URL% -FileName icu4c-57_1-win64-msvc10.zip | |
- 7z x icu4c-57_1-win64-msvc10.zip -o. > nul | |
- set ICU_ROOT=%ICU_DIR%\icu | |
- set PATH=%PATH%;%ICU_ROOT%\bin64 | |
############################################################################ | |
# Install Boost | |
############################################################################ | |
- cd %BOOST_ROOT% | |
- bootstrap.bat | |
- b2 --build-dir=%BOOST_ROOT%\build --build-type=complete stage address-model=64 --with-locale --with-system --with-thread | |
############################################################################ | |
# Install Lz4 | |
############################################################################ | |
- set LZ4_DIR=%DEPS_DIR%\lz4 | |
- set LZ4_URL="https://github.com/lz4/lz4.git" | |
- cd %DEPS_DIR% | |
- appveyor-retry git clone --depth 1 --recursive --quiet %LZ4_URL% %LZ4_DIR% | |
- cd %LZ4_DIR% | |
- mkdir build && cd build | |
- cmake -DCMAKE_INSTALL_PREFIX=%LZ4_ROOT%\build -DBUILD_STATIC_LIBS=on -g %APPVEYOR_BUILD_WORKER_IMAGE% -Ax64 ../contrib/cmake_unofficial | |
- cmake --build . %CMAKE_BUILD_OPTIONS% | |
- cmake --build . --target install | |
- set LZ4_ROOT=%LZ4_ROOT%\build | |
############################################################################ | |
# Setup bison | |
############################################################################ | |
- set PATH=C:\cygwin64\bin;%PATH% | |
- bison --version | |
before_build: | |
- C:\"Program Files (x86)"\"%VSINSTALL%"\vcvarsall.bat amd64 | |
build_script: | |
- if "%BUILD_TYPE%" == "static" set EXECUTABLE_SUFFIX="-s" | |
- cd %APPVEYOR_BUILD_FOLDER% | |
- mkdir build | |
- cd build | |
- cmake -g %APPVEYOR_BUILD_WORKER_IMAGE% -Ax64 %CMAKE_OPTIONS% .. | |
- cmake --build . %CMAKE_BUILD_OPTIONS% --target iresearch-tests-%BUILD_TYPE% | |
- if "%BUILD_TYPE%" == "static" ( cmake --build . %CMAKE_BUILD_OPTIONS% --target iresearch-benchmarks ) | |
- if "%BUILD_TYPE%" == "static" ( cmake --build . %CMAKE_BUILD_OPTIONS% --target iresearch-index-util ) | |
test_script: | |
############################################################################ | |
# Execute tests | |
############################################################################ | |
- cmd: bin\%CONFIGURATION%\iresearch-tests%EXECUTABLE_SUFFIX%.exe --gtest_output=xml:test_results.xml %TEST_OPTIONS% | |
on_finish: | |
############################################################################ | |
# Publish tests results | |
############################################################################ | |
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test_results.xml)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment