2015-08-07 23:50:34 +02:00
|
|
|
version: 1.0.{build}
|
2019-06-24 19:38:02 +02:00
|
|
|
|
2020-04-20 22:21:34 +02:00
|
|
|
image: Visual Studio 2019
|
2019-06-24 19:38:02 +02:00
|
|
|
|
|
|
|
environment:
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
THIRDPARTY_HOME: $(APPVEYOR_BUILD_FOLDER)\thirdparty
|
|
|
|
SNAPPY_HOME: $(THIRDPARTY_HOME)\snappy-1.1.7
|
|
|
|
SNAPPY_INCLUDE: $(SNAPPY_HOME);$(SNAPPY_HOME)\build
|
|
|
|
SNAPPY_LIB_DEBUG: $(SNAPPY_HOME)\build\Debug\snappy.lib
|
|
|
|
SNAPPY_LIB_RELEASE: $(SNAPPY_HOME)\build\Release\snappy.lib
|
|
|
|
LZ4_HOME: $(THIRDPARTY_HOME)\lz4-1.8.3
|
|
|
|
LZ4_INCLUDE: $(LZ4_HOME)\lib
|
|
|
|
LZ4_LIB_DEBUG: $(LZ4_HOME)\visual\VS2010\bin\x64_Debug\liblz4_static.lib
|
|
|
|
LZ4_LIB_RELEASE: $(LZ4_HOME)\visual\VS2010\bin\x64_Release\liblz4_static.lib
|
|
|
|
ZSTD_HOME: $(THIRDPARTY_HOME)\zstd-1.4.0
|
|
|
|
ZSTD_INCLUDE: $(ZSTD_HOME)\lib;$(ZSTD_HOME)\lib\dictBuilder
|
|
|
|
ZSTD_LIB_DEBUG: $(ZSTD_HOME)\build\VS2010\bin\x64_Debug\libzstd_static.lib
|
|
|
|
ZSTD_LIB_RELEASE: $(ZSTD_HOME)\build\VS2010\bin\x64_Release\libzstd_static.lib
|
2019-12-11 05:00:57 +01:00
|
|
|
matrix:
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
CMAKE_GENERATOR: Visual Studio 14 Win64
|
|
|
|
DEV_ENV: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_GENERATOR: Visual Studio 15 Win64
|
|
|
|
DEV_ENV: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.com
|
2019-06-24 19:38:02 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
- md %THIRDPARTY_HOME%
|
|
|
|
- echo "Building Snappy dependency..."
|
|
|
|
- cd %THIRDPARTY_HOME%
|
2020-01-30 20:00:08 +01:00
|
|
|
- curl --fail --silent --show-error --output snappy-1.1.7.zip --location https://github.com/google/snappy/archive/1.1.7.zip
|
2019-06-24 19:38:02 +02:00
|
|
|
- unzip snappy-1.1.7.zip
|
|
|
|
- cd snappy-1.1.7
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-04-20 22:21:34 +02:00
|
|
|
- if DEFINED CMAKE_PLATEFORM_NAME (set "PLATEFORM_OPT=-A %CMAKE_PLATEFORM_NAME%")
|
|
|
|
- cmake .. -G "%CMAKE_GENERATOR%" %PLATEFORM_OPT%
|
2019-06-24 19:38:02 +02:00
|
|
|
- msbuild Snappy.sln /p:Configuration=Debug /p:Platform=x64
|
|
|
|
- msbuild Snappy.sln /p:Configuration=Release /p:Platform=x64
|
|
|
|
- echo "Building LZ4 dependency..."
|
|
|
|
- cd %THIRDPARTY_HOME%
|
2020-01-30 20:00:08 +01:00
|
|
|
- curl --fail --silent --show-error --output lz4-1.8.3.zip --location https://github.com/lz4/lz4/archive/v1.8.3.zip
|
2019-06-24 19:38:02 +02:00
|
|
|
- unzip lz4-1.8.3.zip
|
|
|
|
- cd lz4-1.8.3\visual\VS2010
|
2019-12-11 05:00:57 +01:00
|
|
|
- ps: $CMD="$Env:DEV_ENV"; & $CMD lz4.sln /upgrade
|
2019-06-24 19:38:02 +02:00
|
|
|
- msbuild lz4.sln /p:Configuration=Debug /p:Platform=x64
|
|
|
|
- msbuild lz4.sln /p:Configuration=Release /p:Platform=x64
|
|
|
|
- echo "Building ZStd dependency..."
|
|
|
|
- cd %THIRDPARTY_HOME%
|
2020-01-30 20:00:08 +01:00
|
|
|
- curl --fail --silent --show-error --output zstd-1.4.0.zip --location https://github.com/facebook/zstd/archive/v1.4.0.zip
|
2019-06-24 19:38:02 +02:00
|
|
|
- unzip zstd-1.4.0.zip
|
|
|
|
- cd zstd-1.4.0\build\VS2010
|
2019-12-11 05:00:57 +01:00
|
|
|
- ps: $CMD="$Env:DEV_ENV"; & $CMD zstd.sln /upgrade
|
2019-06-24 19:38:02 +02:00
|
|
|
- msbuild zstd.sln /p:Configuration=Debug /p:Platform=x64
|
|
|
|
- msbuild zstd.sln /p:Configuration=Release /p:Platform=x64
|
|
|
|
|
2015-08-07 23:50:34 +02:00
|
|
|
before_build:
|
2019-06-24 19:38:02 +02:00
|
|
|
- md %APPVEYOR_BUILD_FOLDER%\build
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%\build
|
2020-04-20 22:21:34 +02:00
|
|
|
- if DEFINED CMAKE_PLATEFORM_NAME (set "PLATEFORM_OPT=-A %CMAKE_PLATEFORM_NAME%")
|
2020-06-13 02:04:35 +02:00
|
|
|
- cmake .. -G "%CMAKE_GENERATOR%" %PLATEFORM_OPT% %CMAKE_OPT% -DCMAKE_BUILD_TYPE=Debug -DOPTDBG=1 -DPORTABLE=1 -DSNAPPY=1 -DLZ4=1 -DZSTD=1 -DXPRESS=1 -DJNI=1 -DWITH_ALL_TESTS=0
|
2019-06-24 19:38:02 +02:00
|
|
|
- cd ..
|
2019-12-11 05:00:57 +01:00
|
|
|
|
2015-08-07 23:50:34 +02:00
|
|
|
build:
|
2015-10-20 22:35:08 +02:00
|
|
|
project: build\rocksdb.sln
|
2015-09-29 21:22:48 +02:00
|
|
|
parallel: true
|
2017-08-31 19:18:58 +02:00
|
|
|
verbosity: normal
|
2019-06-24 19:38:02 +02:00
|
|
|
|
2015-11-11 02:23:16 +01:00
|
|
|
test:
|
2019-06-24 19:38:02 +02:00
|
|
|
|
2015-11-11 02:23:16 +01:00
|
|
|
test_script:
|
2020-06-13 02:04:35 +02:00
|
|
|
- ps: build_tools\run_ci_db_test.ps1 -SuiteRun db_basic_test,env_basic_test -Concurrency 8
|
2019-06-24 19:38:02 +02:00
|
|
|
|
|
|
|
on_failure:
|
|
|
|
- cmd: 7z a build-failed.zip %APPVEYOR_BUILD_FOLDER%\build\ && appveyor PushArtifact build-failed.zip
|
2015-11-11 02:23:16 +01:00
|
|
|
|