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 { ...@@ -73,6 +73,10 @@ pipeline {
env.CI_APT_SOURCES_FILE = '' env.CI_APT_SOURCES_FILE = ''
} }
if (env.CI_ALLOW_MISSING_SOURCES != 'true') {
env.CI_ALLOW_MISSING_SOURCES = ''
}
if (!env.CI_EXTRA_APT_SOURCES) { if (!env.CI_EXTRA_APT_SOURCES) {
env.CI_EXTRA_APT_SOURCES = '' env.CI_EXTRA_APT_SOURCES = ''
} }
...@@ -137,6 +141,7 @@ pipeline { ...@@ -137,6 +141,7 @@ pipeline {
_build/prefix/bin/pressure-vessel-build-relocatable-install \ _build/prefix/bin/pressure-vessel-build-relocatable-install \
--output "${WORKSPACE}/relocatable-install" \ --output "${WORKSPACE}/relocatable-install" \
--archive "${WORKSPACE}" \ --archive "${WORKSPACE}" \
${CI_ALLOW_MISSING_SOURCES:+--allow-missing-sources} \
${NULL+} ${NULL+}
prove -v ./tests/relocatable-install.py :: \ prove -v ./tests/relocatable-install.py :: \
"${WORKSPACE}/relocatable-install" "${WORKSPACE}/relocatable-install"
......
...@@ -26,6 +26,8 @@ variables: ...@@ -26,6 +26,8 @@ variables:
SCOUT_APT_SOURCES_FILE: '' SCOUT_APT_SOURCES_FILE: ''
DEVEL_DOCKER_REGISTRY: docker.steamos.cloud DEVEL_DOCKER_REGISTRY: docker.steamos.cloud
DEVEL_DOCKER_IMAGE: steamos/package-builder:buster DEVEL_DOCKER_IMAGE: steamos/package-builder:buster
# Set non-empty to allow
CI_ALLOW_MISSING_SOURCES: ''
build: build:
variables: variables:
...@@ -96,6 +98,7 @@ build:scout: ...@@ -96,6 +98,7 @@ build:scout:
_build/prefix/bin/pressure-vessel-build-relocatable-install \ _build/prefix/bin/pressure-vessel-build-relocatable-install \
--output _build/relocatable-install \ --output _build/relocatable-install \
--archive "$(pwd)/_build" \ --archive "$(pwd)/_build" \
${CI_ALLOW_MISSING_SOURCES:+--allow-missing-sources} \
${NULL+} ${NULL+}
prove -v ./tests/relocatable-install.py :: \ prove -v ./tests/relocatable-install.py :: \
"$(pwd)/_build/relocatable-install" "$(pwd)/_build/relocatable-install"
......
...@@ -10,6 +10,7 @@ apt-get -y install \ ...@@ -10,6 +10,7 @@ apt-get -y install \
${NULL+} ${NULL+}
/usr/lib/pressure-vessel/relocatable/bin/pressure-vessel-build-relocatable-install \ /usr/lib/pressure-vessel/relocatable/bin/pressure-vessel-build-relocatable-install \
${CI_ALLOW_MISSING_SOURCES:+--allow-missing-sources} \
--output "${AUTOPKGTEST_TMP}/relocatable-install" \ --output "${AUTOPKGTEST_TMP}/relocatable-install" \
--archive "${AUTOPKGTEST_TMP}" --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