Skip to content
Snippets Groups Projects
Commit 6be52296 authored by Simon McVittie's avatar Simon McVittie
Browse files

ci: Add a way to allow incomplete source code during development

parent 01352db0
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,10 @@ pipeline {
env.CI_APT_SOURCES_FILE = ''
}
if (env.CI_ALLOW_MISSING_SOURCES != 'true') {
env.CI_ALLOW_MISSING_SOURCES = ''
}
if (!env.CI_EXTRA_APT_SOURCES) {
env.CI_EXTRA_APT_SOURCES = ''
}
......@@ -137,6 +141,7 @@ pipeline {
_build/prefix/bin/pressure-vessel-build-relocatable-install \
--output "${WORKSPACE}/relocatable-install" \
--archive "${WORKSPACE}" \
${CI_ALLOW_MISSING_SOURCES:+--allow-missing-sources} \
${NULL+}
prove -v ./tests/relocatable-install.py :: \
"${WORKSPACE}/relocatable-install"
......
......@@ -26,6 +26,8 @@ variables:
SCOUT_APT_SOURCES_FILE: ''
DEVEL_DOCKER_REGISTRY: docker.steamos.cloud
DEVEL_DOCKER_IMAGE: steamos/package-builder:buster
# Set non-empty to allow
CI_ALLOW_MISSING_SOURCES: ''
build:
variables:
......@@ -96,6 +98,7 @@ build:scout:
_build/prefix/bin/pressure-vessel-build-relocatable-install \
--output _build/relocatable-install \
--archive "$(pwd)/_build" \
${CI_ALLOW_MISSING_SOURCES:+--allow-missing-sources} \
${NULL+}
prove -v ./tests/relocatable-install.py :: \
"$(pwd)/_build/relocatable-install"
......
......@@ -10,6 +10,7 @@ apt-get -y install \
${NULL+}
/usr/lib/pressure-vessel/relocatable/bin/pressure-vessel-build-relocatable-install \
${CI_ALLOW_MISSING_SOURCES:+--allow-missing-sources} \
--output "${AUTOPKGTEST_TMP}/relocatable-install" \
--archive "${AUTOPKGTEST_TMP}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment