mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use cache
This commit is contained in:
parent
2b0711b1f4
commit
e3a3b00034
1 changed files with 13 additions and 3 deletions
|
@ -6,14 +6,24 @@ stages:
|
|||
image: stretch:after-postinstall
|
||||
before_script:
|
||||
- apt-get install python-pip -y
|
||||
- pip2 install pytest pytest-sugar pytest-mock requests-mock mock
|
||||
- mkdir -p .pip
|
||||
- pip install -U pip
|
||||
- hash -d pip
|
||||
- pip --cache-dir=.pip install pytest pytest-sugar pytest-mock requests-mock mock
|
||||
- pushd src/yunohost/tests
|
||||
- git clone https://github.com/YunoHost/test_apps ./apps
|
||||
- >
|
||||
if [ ! -d "./apps" ]; then
|
||||
git clone https://github.com/YunoHost/test_apps ./apps
|
||||
fi
|
||||
- cd apps
|
||||
- git pull > /dev/null 2>&1
|
||||
- popd
|
||||
- export PYTEST_ADDOPTS="--color=yes"
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .pip
|
||||
- src/yunohost/tests/apps
|
||||
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
|
||||
|
||||
postinstall:
|
||||
image: stretch:before-postinstall
|
||||
|
|
Loading…
Add table
Reference in a new issue