Fixed broken Gitlab CI build and added pip cache
This commit is contained in:
parent
0ad31ffb17
commit
3927b65965
|
@ -13,16 +13,22 @@ stages:
|
||||||
test_api:
|
test_api:
|
||||||
stage: test
|
stage: test
|
||||||
image: funkwhale/funkwhale:base
|
image: funkwhale/funkwhale:base
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
|
||||||
|
DATABASE_URL: "sqlite://"
|
||||||
before_script:
|
before_script:
|
||||||
|
- python3 -m venv --copies virtualenv
|
||||||
|
- source virtualenv/bin/activate
|
||||||
- cd api
|
- cd api
|
||||||
- pip install -r requirements/base.txt
|
- pip install -r requirements/base.txt
|
||||||
- pip install -r requirements/local.txt
|
- pip install -r requirements/local.txt
|
||||||
- pip install -r requirements/test.txt
|
- pip install -r requirements/test.txt
|
||||||
script:
|
script:
|
||||||
- pytest
|
- pytest
|
||||||
variables:
|
cache:
|
||||||
DATABASE_URL: "sqlite://"
|
key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
|
||||||
|
paths:
|
||||||
|
- "$CI_PROJECT_DIR/pip-cache"
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue