ci: set PYTHONPATH for the pmb module globally
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7868>
This commit is contained in:
+1
-1
@@ -27,6 +27,6 @@ pmbootstrap config aports "$pmaports"
|
|||||||
pmbootstrap -q shutdown
|
pmbootstrap -q shutdown
|
||||||
|
|
||||||
# Needed to import "common"
|
# Needed to import "common"
|
||||||
export PYTHONPATH=".ci/lib"
|
export PYTHONPATH="$PYTHONPATH:.ci/lib"
|
||||||
# Run testcases
|
# Run testcases
|
||||||
pytest -vv --tb=native "$pmaports/.ci/testcases" "$@"
|
pytest -vv --tb=native "$pmaports/.ci/testcases" "$@"
|
||||||
|
|||||||
+4
-1
@@ -16,6 +16,9 @@ variables:
|
|||||||
# seems like a reasonable balance. If this is too low, git merge-base (from ci/
|
# seems like a reasonable balance. If this is too low, git merge-base (from ci/
|
||||||
# common.py) can fail
|
# common.py) can fail
|
||||||
GIT_DEPTH: 100
|
GIT_DEPTH: 100
|
||||||
|
# So that anything that runs install_pmbootstrap and tries to import pmb module
|
||||||
|
# can find it.
|
||||||
|
PYTHONPATH: "/tmp/pmbootstrap"
|
||||||
|
|
||||||
# This defines the rules for when a pipeline should run.
|
# This defines the rules for when a pipeline should run.
|
||||||
workflow:
|
workflow:
|
||||||
@@ -178,7 +181,7 @@ generate-build-jobs:
|
|||||||
# HACK: Make the pmb library happy to use the currently-cloned pmaports repo
|
# HACK: Make the pmb library happy to use the currently-cloned pmaports repo
|
||||||
- mkdir -p /root/.local/var/pmbootstrap/cache_git/ && ln -s $PWD /root/.local/var/pmbootstrap/cache_git/pmaports
|
- mkdir -p /root/.local/var/pmbootstrap/cache_git/ && ln -s $PWD /root/.local/var/pmbootstrap/cache_git/pmaports
|
||||||
|
|
||||||
- PYTHONPATH=/tmp/pmbootstrap/ .ci/lib/generate_build_jobs.py
|
- .ci/lib/generate_build_jobs.py
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user