2019-07-10 22:16:48 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# general configuration #
|
|
|
|
#---------------------------------#
|
2018-03-20 17:12:50 +00:00
|
|
|
version: 1.0.{build}
|
2019-07-10 22:16:48 +00:00
|
|
|
max_jobs: 2
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# environment configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
clone_depth: 2
|
2018-03-20 17:12:50 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
2019-03-16 15:56:26 +00:00
|
|
|
- COMPILER: "visual"
|
2019-07-10 22:50:15 +00:00
|
|
|
ARCH: "x64"
|
2019-07-11 00:24:54 +00:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
COMPILER: "visual"
|
|
|
|
ARCH: "x64"
|
|
|
|
- COMPILER: "visual"
|
|
|
|
ARCH: "Win32"
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
|
|
COMPILER: "visual"
|
|
|
|
ARCH: "Win32"
|
2019-07-03 21:56:13 +00:00
|
|
|
- COMPILER: "visual"
|
2019-07-10 22:39:57 +00:00
|
|
|
ARCH: "ARM"
|
2019-07-11 00:40:59 +00:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
COMPILER: "visual"
|
|
|
|
ARCH: "ARM64"
|
2019-07-10 23:10:37 +00:00
|
|
|
# note : ARM64 is not available with Visual Studio 14 2015, which is default for Appveyor
|
2018-03-20 17:12:50 +00:00
|
|
|
- COMPILER: "gcc"
|
|
|
|
PLATFORM: "mingw64"
|
|
|
|
- COMPILER: "gcc"
|
|
|
|
PLATFORM: "mingw32"
|
2019-07-10 21:53:16 +00:00
|
|
|
- COMPILER: "gcc"
|
|
|
|
PLATFORM: "clang"
|
2018-03-20 17:12:50 +00:00
|
|
|
|
|
|
|
install:
|
2019-07-10 23:10:37 +00:00
|
|
|
- ECHO Installing %COMPILER% %PLATFORM% %ARCH%
|
2018-03-20 17:12:50 +00:00
|
|
|
- MKDIR bin
|
|
|
|
- if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
|
|
|
|
- if [%COMPILER%]==[gcc] (
|
|
|
|
SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" &&
|
|
|
|
SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" &&
|
|
|
|
COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe &&
|
|
|
|
COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
|
|
|
|
)
|
|
|
|
|
2019-07-10 22:16:48 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# build configuration #
|
|
|
|
#---------------------------------#
|
2018-03-20 17:12:50 +00:00
|
|
|
build_script:
|
|
|
|
- if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
|
|
|
|
- if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
|
2019-07-10 22:29:26 +00:00
|
|
|
- if [%PLATFORM%]==[clang] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
|
2019-07-11 00:19:31 +00:00
|
|
|
- ECHO ***
|
|
|
|
- ECHO Building %COMPILER% %PLATFORM% %ARCH%
|
|
|
|
- ECHO ***
|
2018-03-20 17:12:50 +00:00
|
|
|
- if [%PLATFORM%]==[clang] (clang -v)
|
|
|
|
- if [%COMPILER%]==[gcc] (gcc -v)
|
|
|
|
- if [%COMPILER%]==[gcc] (
|
|
|
|
echo ----- &&
|
|
|
|
make -v &&
|
|
|
|
echo ----- &&
|
|
|
|
if not [%PLATFORM%]==[clang] (
|
2018-03-20 17:41:22 +00:00
|
|
|
make -B clean test MOREFLAGS=-Werror
|
2019-07-10 21:55:56 +00:00
|
|
|
) ELSE (
|
2019-07-10 23:13:59 +00:00
|
|
|
make -B clean test CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wno-pass-failed -Dinline="
|
2019-03-20 09:01:06 +00:00
|
|
|
) &&
|
|
|
|
make -C tests/bench
|
2018-03-20 17:12:50 +00:00
|
|
|
)
|
2019-07-11 00:19:31 +00:00
|
|
|
# note : strict c90 tests with clang fail, due to presence on inline keyword in some included file
|
|
|
|
# -Dinline= is a way to disable this keyword
|
2019-07-10 21:53:16 +00:00
|
|
|
|
2019-07-10 22:16:48 +00:00
|
|
|
- if [%COMPILER%]==[visual] (
|
2019-07-03 21:56:13 +00:00
|
|
|
cd cmake_unofficial &&
|
2019-07-11 00:11:50 +00:00
|
|
|
cmake . -DCMAKE_BUILD_TYPE=Release -A %ARCH% &&
|
|
|
|
cmake --build . --config Release
|
2019-07-10 22:16:48 +00:00
|
|
|
)
|
2018-03-20 17:12:50 +00:00
|
|
|
|
2019-07-10 22:16:48 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# tests configuration #
|
|
|
|
#---------------------------------#
|
2018-03-20 17:12:50 +00:00
|
|
|
test_script:
|
2019-07-10 23:10:37 +00:00
|
|
|
- ECHO ***
|
|
|
|
- ECHO Testing %COMPILER% %PLATFORM% %ARCH%
|
|
|
|
- ECHO ***
|
2019-07-10 23:20:25 +00:00
|
|
|
- if [%COMPILER%]==[visual] (
|
2019-07-11 00:11:50 +00:00
|
|
|
cd Release &&
|
2019-07-11 00:19:31 +00:00
|
|
|
if not [%ARCH%]==[ARM] ( xxhsum.exe -bi1 )
|
2019-07-10 23:20:25 +00:00
|
|
|
)
|
2019-07-11 00:19:31 +00:00
|
|
|
# note : can only run x86 and x64 binaries on Appveyor
|
|
|
|
# note : if %COMPILER%==gcc, xxhsum already tested
|
2019-07-10 23:10:37 +00:00
|
|
|
- ECHO ------- xxhsum tested -------
|
2019-07-10 22:16:48 +00:00
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# artifacts configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
# none yet
|