mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
ci: use cache/virtualenv for test dependencies
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
57c0409958
commit
fbb3e052fe
4 changed files with 10 additions and 6 deletions
|
@ -4,6 +4,7 @@ cache:
|
|||
paths:
|
||||
# For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory
|
||||
- .pkg-cache
|
||||
- .venv
|
||||
|
||||
variables:
|
||||
AUR_CONFIG: conf/config # Default MySQL config setup in before_script.
|
||||
|
@ -31,6 +32,8 @@ test:
|
|||
before_script:
|
||||
- export PATH="$HOME/.poetry/bin:${PATH}"
|
||||
- ./docker/scripts/install-deps.sh
|
||||
- virtualenv -p python3 .venv
|
||||
- source .venv/bin/activate # Enable our virtualenv cache
|
||||
- ./docker/scripts/install-python-deps.sh
|
||||
- useradd -U -d /aurweb -c 'AUR User' aur
|
||||
- ./docker/mariadb-entrypoint.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue