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