2020-11-19 17:58:46 +01:00
.test :
2019-10-04 00:21:24 +02:00
image : registry.gitlab.gnome.org/gnome/libxml2
2022-04-21 06:23:55 +02:00
variables :
2024-06-12 18:20:01 +02:00
BASE_CONFIG : "--with-legacy"
2022-09-04 15:35:47 +02:00
before_script :
- rm -rf libxml2-build
- mkdir libxml2-build
- ln -s /tests/xmlconf libxml2-build
2019-10-04 00:21:24 +02:00
script :
2022-09-04 15:35:47 +02:00
- sh .gitlab-ci/test.sh
2019-10-04 00:21:24 +02:00
gcc :
extends : .test
variables :
2024-03-22 18:34:12 +01:00
CFLAGS : "-O2"
gcc:c89 :
extends : .test
variables :
CONFIG : "--without-python"
2023-05-25 03:03:33 +02:00
CFLAGS : "-O2 -std=c89 -D_XOPEN_SOURCE=600"
2019-10-04 00:21:24 +02:00
2022-04-21 06:23:55 +02:00
gcc:minimum :
extends : .test
variables :
BASE_CONFIG : "--with-minimum"
CFLAGS : "-O2"
2023-09-21 12:33:46 +02:00
gcc:medium :
extends : .test
variables :
BASE_CONFIG : "--with-minimum"
CONFIG : "--with-threads --with-tree --with-xpath --with-output --with-html"
CFLAGS : "-O2"
2023-08-20 22:50:57 +02:00
gcc:legacy :
extends : .test
only :
- schedules
variables :
BASE_CONFIG : "--with-legacy"
CFLAGS : "-O2"
2022-04-03 14:30:03 +02:00
gcc:static :
extends : .test
variables :
2022-12-06 17:00:03 +00:00
CONFIG : "--disable-shared --without-python --without-modules"
2022-04-03 14:30:03 +02:00
CFLAGS : "-O2"
2019-10-04 00:21:24 +02:00
clang:asan :
extends : .test
2022-10-24 01:08:25 +02:00
tags :
- asan
2019-10-04 00:21:24 +02:00
variables :
2022-04-20 23:17:14 +02:00
CONFIG : "--without-python"
2019-10-04 00:21:24 +02:00
CC : clang
2023-10-02 15:04:18 +02:00
CFLAGS : "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,integer -fno-sanitize-recover=all"
2019-10-04 00:21:24 +02:00
UBSAN_OPTIONS : "print_stacktrace=1"
2022-10-23 23:26:31 +02:00
ASAN_SYMBOLIZER_PATH : "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
2019-10-04 00:21:24 +02:00
2022-10-24 14:56:26 +02:00
clang:msan :
2019-10-04 00:21:24 +02:00
extends : .test
2022-10-24 14:56:26 +02:00
# only:
# - schedules
2019-10-04 00:21:24 +02:00
variables :
2022-04-20 23:17:14 +02:00
CONFIG : "--without-python --without-zlib --without-lzma"
2019-10-04 00:21:24 +02:00
CC : clang
2023-10-02 15:04:18 +02:00
CFLAGS : "-O2 -g -fno-omit-frame-pointer -fsanitize=memory"
2022-10-24 14:56:26 +02:00
MSAN_SYMBOLIZER_PATH : "$CI_PROJECT_DIR/.gitlab-ci/llvm-symbolizer"
2019-10-04 00:21:24 +02:00
2022-09-04 16:00:19 +02:00
.mingw :
tags :
- win32-ps
variables :
2024-06-12 18:20:01 +02:00
BASE_CONFIG : "--with-legacy"
2024-01-10 15:37:50 +01:00
# Disabled for now, see #658
CONFIG : "--without-python"
2022-09-04 16:00:19 +02:00
CHERE_INVOKING : "yes"
before_script :
2022-09-06 21:29:24 +02:00
- $Env:Path="C:\msys64\usr\bin;$Env:Path"
2022-09-06 20:32:08 +02:00
- bash -lc 'sh .gitlab-ci/setup_mingw.sh autotools'
2022-09-04 16:00:19 +02:00
script :
- bash -lc 'sh .gitlab-ci/test.sh'
cache :
2022-09-04 22:12:32 +02:00
key : "$MSYSTEM"
2022-09-04 16:00:19 +02:00
paths :
- libxml2-build/xmlconf/
mingw:w64-x86_64:shared :
extends : .mingw
variables :
CFLAGS : "-O2"
MSYSTEM : MINGW64
2022-09-07 18:18:06 +02:00
mingw:w64-i686:shared :
extends : .mingw
only :
- schedules
variables :
CFLAGS : "-O2"
MSYSTEM : MINGW32
2022-09-04 16:00:19 +02:00
# Disabled, GCC missing?
.mingw:msys:shared :
extends : .mingw
variables :
CFLAGS : "-O2"
MSYSTEM : MSYS
2020-11-19 17:58:46 +01:00
.cmake:linux :
image : registry.gitlab.gnome.org/gnome/libxml2
2022-09-06 21:29:24 +02:00
before_script :
- rm -rf libxml2-build
- mkdir libxml2-build
- ln -s /tests/xmlconf libxml2-build
2020-11-19 17:58:46 +01:00
script :
2022-09-06 21:29:24 +02:00
- sh .gitlab-ci/test_cmake.sh
2020-11-19 17:58:46 +01:00
artifacts :
paths :
2022-09-06 22:46:07 +02:00
- libxml2-$CI_COMMIT_SHORT_SHA-$SUFFIX.tar.gz
2020-11-19 17:58:46 +01:00
expire_in : 1 day
cmake:linux:gcc:shared :
extends : .cmake:linux
variables :
BUILD_SHARED_LIBS : "ON"
CC : gcc
2022-09-06 22:46:07 +02:00
SUFFIX : linux-gcc-shared
2020-11-19 17:58:46 +01:00
cmake:linux:gcc:static :
extends : .cmake:linux
2021-02-22 22:01:57 +01:00
only :
- schedules
2020-11-19 17:58:46 +01:00
variables :
BUILD_SHARED_LIBS : "OFF"
CC : gcc
2022-09-06 22:46:07 +02:00
SUFFIX : linux-gcc-static
2020-11-19 17:58:46 +01:00
cmake:linux:clang:shared :
extends : .cmake:linux
2021-02-22 22:01:57 +01:00
only :
- schedules
2020-11-19 17:58:46 +01:00
variables :
BUILD_SHARED_LIBS : "ON"
CC : clang
2022-09-06 22:46:07 +02:00
SUFFIX : linux-clang-shared
2020-11-19 17:58:46 +01:00
cmake:linux:clang:static :
extends : .cmake:linux
2021-02-22 22:01:57 +01:00
only :
- schedules
2020-11-19 17:58:46 +01:00
variables :
BUILD_SHARED_LIBS : "OFF"
CC : clang
2022-09-06 22:46:07 +02:00
SUFFIX : linux-clang-static
2020-11-19 17:58:46 +01:00
.cmake:mingw :
tags :
- win32-ps
2022-09-04 22:12:32 +02:00
variables :
CHERE_INVOKING : "yes"
2020-11-19 17:58:46 +01:00
before_script :
2022-09-06 21:29:24 +02:00
- $Env:Path="C:\msys64\usr\bin;$Env:Path"
2022-09-06 18:24:25 +02:00
- bash -lc 'sh .gitlab-ci/setup_mingw.sh cmake ninja'
2020-11-19 17:58:46 +01:00
script :
2022-09-06 21:29:24 +02:00
- bash -lc 'sh .gitlab-ci/test_cmake.sh -G Ninja'
2020-11-19 17:58:46 +01:00
cache :
2022-09-04 22:12:32 +02:00
key : "$MSYSTEM"
2020-11-19 17:58:46 +01:00
paths :
- libxml2-build/xmlconf/
artifacts :
paths :
2022-09-06 22:46:07 +02:00
- libxml2-$Env:CI_COMMIT_SHORT_SHA-$Env:SUFFIX.tar.gz
2020-11-19 17:58:46 +01:00
expire_in : 1 day
cmake:mingw:w64-i686:shared :
extends : .cmake:mingw
2021-02-22 22:01:57 +01:00
only :
- schedules
2020-11-19 17:58:46 +01:00
variables :
BUILD_SHARED_LIBS : "ON"
2022-09-04 22:12:32 +02:00
MSYSTEM : MINGW32
2022-09-06 22:46:07 +02:00
SUFFIX : mingw-w64-i686-shared
2020-11-19 17:58:46 +01:00
cmake:mingw:w64-i686:static :
extends : .cmake:mingw
2021-02-22 22:01:57 +01:00
only :
- schedules
2020-11-19 17:58:46 +01:00
variables :
BUILD_SHARED_LIBS : "OFF"
2022-09-04 22:12:32 +02:00
MSYSTEM : MINGW32
2022-09-06 22:46:07 +02:00
SUFFIX : mingw-w64-i686-static
2020-11-19 17:58:46 +01:00
cmake:mingw:w64-x86_64:shared :
extends : .cmake:mingw
variables :
BUILD_SHARED_LIBS : "ON"
2022-09-04 22:12:32 +02:00
MSYSTEM : MINGW64
2022-09-06 22:46:07 +02:00
SUFFIX : mingw-w64-x86_64-shared
2020-11-19 17:58:46 +01:00
cmake:mingw:w64-x86_64:static :
extends : .cmake:mingw
2021-02-22 22:01:57 +01:00
only :
- schedules
2020-11-19 17:58:46 +01:00
variables :
BUILD_SHARED_LIBS : "OFF"
2022-09-04 22:12:32 +02:00
MSYSTEM : MINGW64
2022-09-06 22:46:07 +02:00
SUFFIX : mingw-w64-x86_64-static
2021-02-05 23:40:18 +01:00
.cmake:msvc :
tags :
- win32-ps
variables :
2023-01-22 19:42:41 +01:00
# MSVC warns when casting `const char **` to `void *` which is wrong.
# Disable warning C4090.
CFLAGS : /WX /wd4090
2021-02-05 23:40:18 +01:00
CMAKE_VERSION : 3.19 .4
script :
2022-09-06 23:27:01 +02:00
- .gitlab-ci/Test-Msvc
2021-02-05 23:40:18 +01:00
cache :
key : "msvc"
paths :
- cmake-$Env:CMAKE_VERSION-win64-x64/
- libxml2-build/xmlconf/
2022-09-06 21:29:24 +02:00
- 7za.exe
2021-02-05 23:40:18 +01:00
artifacts :
paths :
- libxml2-$Env:CI_COMMIT_SHORT_SHA-$Env:CMAKE_GENERATOR_TOOLSET-$Env:CMAKE_GENERATOR_PLATFORM-$Env:SUFFIX.7z
expire_in : 1 day
.cmake:msvc:v141 :
extends : .cmake:msvc
variables :
CMAKE_GENERATOR : Visual Studio 15 2017
CMAKE_GENERATOR_TOOLSET : v141
.cmake:msvc:v141:x64 :
extends : .cmake:msvc:v141
variables :
CMAKE_GENERATOR_PLATFORM : x64
cmake:msvc:v141:x64:shared :
extends : .cmake:msvc:v141:x64
variables :
BUILD_SHARED_LIBS : "ON"
SUFFIX : shared
cmake:msvc:v141:x64:static :
extends : .cmake:msvc:v141:x64
2021-02-22 22:01:57 +01:00
only :
- schedules
2021-02-05 23:40:18 +01:00
variables :
BUILD_SHARED_LIBS : "OFF"
SUFFIX : static
2021-02-21 14:26:40 +01:00
.cmake:msvc:v141:x86 :
extends : .cmake:msvc:v141
2021-02-22 22:01:57 +01:00
only :
- schedules
2021-02-21 14:26:40 +01:00
variables :
CMAKE_GENERATOR_PLATFORM : Win32
cmake:msvc:v141:x86:shared :
extends : .cmake:msvc:v141:x86
2021-02-22 22:01:57 +01:00
only :
- schedules
2021-02-21 14:26:40 +01:00
variables :
BUILD_SHARED_LIBS : "ON"
SUFFIX : shared
cmake:msvc:v141:x86:static :
extends : .cmake:msvc:v141:x86
variables :
BUILD_SHARED_LIBS : "OFF"
SUFFIX : static
2022-02-12 20:02:51 +01:00
2024-04-04 12:14:46 +02:00
meson :
image : registry.gitlab.gnome.org/gnome/libxml2
script :
- sh .gitlab-ci/test_meson.sh
cmake:linux:gcc:shared :
extends : .cmake:linux
variables :
BUILD_SHARED_LIBS : "ON"
CC : gcc
SUFFIX : linux-gcc-shared
2022-02-12 20:02:51 +01:00
pages :
script :
- mkdir -p public
2024-04-28 22:57:02 +02:00
- cp -r doc/devhelp doc/xmllint.html doc/xmlcatalog.html public
2022-02-12 20:02:51 +01:00
artifacts :
paths :
- public
exclude :
- public/devhelp/Makefile*
- public/devhelp/*.xsl
only :
2022-02-12 21:36:27 +01:00
- master@GNOME/libxml2