"Fossies" - the Fresh Open Source Software Archive

Member "xxHash-0.8.0/appveyor.yml" (27 Jul 2020, 3483 Bytes) of package /linux/misc/xxHash-0.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "appveyor.yml": 0.7.2_vs_0.7.3.

    1 #---------------------------------#
    2 #      general configuration      #
    3 #---------------------------------#
    4 version: 1.0.{build}
    5 max_jobs: 2
    6 
    7 #---------------------------------#
    8 #    environment configuration    #
    9 #---------------------------------#
   10 clone_depth: 2
   11 environment:
   12   matrix:
   13   - COMPILER: "visual"
   14     ARCH: "x64"
   15     TEST_XXHSUM: "true"
   16   - COMPILER: "visual"
   17     ARCH: "x64"
   18     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
   19     TEST_XXHSUM: "true"
   20   - COMPILER: "visual"
   21     ARCH: "Win32"
   22     TEST_XXHSUM: "true"
   23   - COMPILER: "visual"
   24     ARCH: "Win32"
   25     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
   26     TEST_XXHSUM: "true"
   27   - COMPILER: "visual"
   28     ARCH: "ARM"
   29   - COMPILER: "visual"
   30     ARCH: "ARM64"
   31     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
   32     # note: ARM64 is not available with Visual Studio 14 2015, which is default for Appveyor
   33   - COMPILER: "gcc"
   34     PLATFORM: "mingw64"
   35   - COMPILER: "gcc"
   36     PLATFORM: "mingw32"
   37   - COMPILER: "gcc"
   38     PLATFORM: "clang"
   39 
   40 install:
   41   - ECHO Installing %COMPILER% %PLATFORM% %ARCH%
   42   - MKDIR bin
   43   - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
   44   - if [%COMPILER%]==[gcc] (
   45       SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" &&
   46       SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" &&
   47       COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe &&
   48       COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
   49     )
   50 
   51 #---------------------------------#
   52 #       build configuration       #
   53 #---------------------------------#
   54 build_script:
   55   - if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
   56   - if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
   57   - if [%PLATFORM%]==[clang]   SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
   58   - ECHO ***
   59   - ECHO Building %COMPILER% %PLATFORM% %ARCH%
   60   - ECHO ***
   61 
   62   - if [%COMPILER%]==[gcc] (
   63       if [%PLATFORM%]==[clang] (
   64         clang -v
   65       ) ELSE (
   66         gcc -v
   67       )
   68     )
   69   - if [%COMPILER%]==[gcc] (
   70       echo ----- &&
   71       make -v &&
   72       echo ----- &&
   73       if not [%PLATFORM%]==[clang] (
   74         if [%PLATFORM%]==[mingw32] ( SET CPPFLAGS=-DPOOL_MT=0 ) &&
   75         make -B clean test MOREFLAGS=-Werror
   76       ) ELSE (
   77         SET CXXFLAGS=--std=c++14 &&
   78         make -B clean test CC=clang CXX=clang++ MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wno-pass-failed" NO_C90_TEST=true
   79       ) &&
   80       make -C tests/bench
   81     )
   82     # note 1: strict c90 tests with clang fail, due to (erroneous) presence on `inline` keyword in some included system file
   83     # note 2: multi-threading code doesn't work with mingw32, disabled through POOL_MT=0
   84     # note 3: clang requires C++14 to compile sort because its own code contains c++14-only code
   85 
   86   - if [%COMPILER%]==[visual] (
   87       cd cmake_unofficial &&
   88       cmake . -DCMAKE_BUILD_TYPE=Release -A %ARCH% -DXXHASH_C_FLAGS="/WX" &&
   89       cmake --build . --config Release
   90     )
   91 
   92 #---------------------------------#
   93 #       tests configuration       #
   94 #---------------------------------#
   95 test_script:
   96   # note: can only run x86 and x64 binaries on Appveyor
   97   # note: if %COMPILER%==gcc, xxhsum was already tested within `make test`
   98   - if [%TEST_XXHSUM%]==[true] (
   99       ECHO ***  &&
  100       ECHO Testing %COMPILER% %PLATFORM% %ARCH%  &&
  101       ECHO ***  &&
  102       cd Release &&
  103       xxhsum.exe -bi1 &&
  104       ECHO ------- xxhsum tested -------
  105     )
  106 
  107 
  108 #---------------------------------#
  109 #      artifacts configuration    #
  110 #---------------------------------#
  111 # none yet