mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ci: ughr ok, dunno what i was thinking, partially revert the previous commit, go to sleep Aleks ffs
This commit is contained in:
parent
764fe6a7ba
commit
9083a5cc3d
1 changed files with 7 additions and 5 deletions
|
@ -1,12 +1,15 @@
|
||||||
|
.install_debs: &install_debs
|
||||||
|
- apt-get update -o Acquire::Retries=3
|
||||||
|
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
|
||||||
|
- pip3 install -U mock pip pytest pytest-cov pytest-mock pytest-sugar requests-mock "packaging<22"
|
||||||
|
|
||||||
.test-stage:
|
.test-stage:
|
||||||
stage: test
|
stage: test
|
||||||
image: "core-tests"
|
image: "core-tests"
|
||||||
variables:
|
variables:
|
||||||
PYTEST_ADDOPTS: "--color=yes"
|
PYTEST_ADDOPTS: "--color=yes"
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -o Acquire::Retries=3
|
- *install_debs
|
||||||
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
|
|
||||||
- pip3 install -U mock pytest pytest-cov pytest-mock pytest-sugar requests-mock "packaging<22"
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- src/tests/apps
|
- src/tests/apps
|
||||||
|
@ -30,8 +33,7 @@ full-tests:
|
||||||
variables:
|
variables:
|
||||||
PYTEST_ADDOPTS: "--color=yes"
|
PYTEST_ADDOPTS: "--color=yes"
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -o Acquire::Retries=3
|
- *install_debs
|
||||||
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
|
|
||||||
- yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace
|
- yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest --cov=yunohost tests/ src/tests/ --junitxml=report.xml
|
- python3 -m pytest --cov=yunohost tests/ src/tests/ --junitxml=report.xml
|
||||||
|
|
Loading…
Add table
Reference in a new issue