2021-07-09 17:29:32 +03:00
@CIRRUS_VM_INSTANCE_TYPE@ :
@CIRRUS_VM_IMAGE_SELECTOR@ : @CIRRUS_VM_IMAGE_NAME@
cpu : @CIRRUS_VM_CPUS@
memory : @CIRRUS_VM_RAM@
env :
CIRRUS_CLONE_DEPTH : 1
CI_REPOSITORY_URL : "@CI_REPOSITORY_URL@"
CI_COMMIT_REF_NAME : "@CI_COMMIT_REF_NAME@"
CI_COMMIT_SHA : "@CI_COMMIT_SHA@"
PATH : "@PATH@"
PKG_CONFIG_PATH : "@PKG_CONFIG_PATH@"
PYTHON : "@PYTHON@"
MAKE : "@MAKE@"
CONFIGURE_ARGS : "@CONFIGURE_ARGS@"
2021-09-17 19:23:30 +03:00
TEST_TARGETS : "@TEST_TARGETS@"
2021-07-09 17:29:32 +03:00
build_task :
2023-09-14 18:54:19 +03:00
# A little shorter than GitLab timeout in ../cirrus.yml
timeout_in : 60m
2021-07-09 17:29:32 +03:00
install_script :
- @UPDATE_COMMAND@
- @INSTALL_COMMAND@ @PKGS@
2024-02-22 14:40:38 +03:00
- if test -n "@PYPI_PKGS@" ; then PYLIB=$(@PYTHON@ -c 'import sysconfig; print(sysconfig.get_path("stdlib"))'); rm -f $PYLIB/EXTERNALLY-MANAGED; @PIP3@ install @PYPI_PKGS@ ; fi
2021-07-09 17:29:32 +03:00
clone_script :
- git clone --depth 100 "$CI_REPOSITORY_URL" .
- git fetch origin "$CI_COMMIT_REF_NAME"
- git reset --hard "$CI_COMMIT_SHA"
2024-08-17 00:32:03 +03:00
step_script :
2021-07-09 17:29:32 +03:00
- mkdir build
- cd build
- ../configure --enable-werror $CONFIGURE_ARGS
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
- $MAKE -j$(sysctl -n hw.ncpu)
- for TARGET in $TEST_TARGETS ;
do
2023-02-28 22:06:34 +03:00
$MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 ;
2021-07-09 17:29:32 +03:00
done
2023-02-28 22:06:34 +03:00
always :
build_result_artifacts :
path : build/meson-logs/*log.txt
type : text/plain