2020-06-29 17:00:36 +00:00
|
|
|
@CIRRUS_VM_INSTANCE_TYPE@:
|
|
|
|
@CIRRUS_VM_IMAGE_SELECTOR@: @CIRRUS_VM_IMAGE_NAME@
|
|
|
|
|
|
|
|
env:
|
|
|
|
CI_REPOSITORY_URL: "@CI_REPOSITORY_URL@"
|
|
|
|
CI_COMMIT_REF_NAME: "@CI_COMMIT_REF_NAME@"
|
2023-06-05 10:25:01 +00:00
|
|
|
CI_MERGE_REQUEST_REF_PATH: "@CI_MERGE_REQUEST_REF_PATH@"
|
2020-06-29 17:00:36 +00:00
|
|
|
CI_COMMIT_SHA: "@CI_COMMIT_SHA@"
|
|
|
|
PATH: "@PATH@"
|
|
|
|
PKG_CONFIG_PATH: "@PKG_CONFIG_PATH@"
|
|
|
|
PYTHON: "@PYTHON@"
|
|
|
|
MAKE: "@MAKE@"
|
2021-05-05 13:44:47 +00:00
|
|
|
VIR_TEST_VERBOSE: "1"
|
|
|
|
VIR_TEST_DEBUG: "1"
|
2020-06-29 17:00:36 +00:00
|
|
|
|
|
|
|
build_task:
|
|
|
|
install_script:
|
2021-02-15 14:29:52 +00:00
|
|
|
- @UPDATE_COMMAND@
|
2021-06-15 08:15:39 +00:00
|
|
|
- @UPGRADE_COMMAND@
|
2020-06-29 17:00:36 +00:00
|
|
|
- @INSTALL_COMMAND@ @PKGS@
|
2021-01-11 14:12:02 +00:00
|
|
|
- if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi
|
2020-06-29 17:00:36 +00:00
|
|
|
clone_script:
|
|
|
|
- git clone --depth 100 "$CI_REPOSITORY_URL" .
|
2023-06-05 10:25:01 +00:00
|
|
|
- git fetch origin "${CI_MERGE_REQUEST_REF_PATH:-$CI_COMMIT_REF_NAME}"
|
2020-06-29 17:00:36 +00:00
|
|
|
- git reset --hard "$CI_COMMIT_SHA"
|
|
|
|
build_script:
|
2023-10-25 15:33:49 +00:00
|
|
|
- if test "$(uname)" = "Darwin"; then meson setup build --optimization 0; else meson setup build; fi
|
2021-05-10 17:14:12 +00:00
|
|
|
- meson dist -C build --no-tests
|
|
|
|
- meson compile -C build
|
2022-04-28 10:32:13 +00:00
|
|
|
- meson test -C build --no-suite syntax-check --print-errorlogs || (cat ~/Library/Logs/DiagnosticReports/*.crash && exit 1)
|