mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
---
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
.run-functional-tests:
|
|
stage: functional-tests
|
|
needs: []
|
|
dependencies: []
|
|
tags:
|
|
- functional-tests
|
|
timeout: 10h
|
|
# Need to find another way of running the cleanup step even on failure
|
|
allow_failure: true
|
|
except:
|
|
- $GITLAB_USER_LOGIN == "weblate"
|
|
before_script:
|
|
- apt-get update
|
|
- sudo -u plinth ./run --develop > plinth.log 2>&1 &
|
|
- 'echo -e "Cmnd_Alias FREEDOMBOX_ACTION_DEV = /usr/share/plinth/actions/actions, `pwd`/actions/actions\nDefaults!FREEDOMBOX_ACTION_DEV closefrom_override\nplinth ALL=(ALL:ALL) NOPASSWD:SETENV : FREEDOMBOX_ACTION_DEV\n" > /etc/sudoers.d/01-freedombox-development'
|
|
- while ! grep -q "Setup thread finished" plinth.log; do sleep 1; echo -n .; done
|
|
script:
|
|
- FREDOMBOX_URL=https://localhost FREEDOMBOX_SSH_PORT=22 FREEDOMBOX_SAMBA_PORT=445 pytest -v --durations=10 --include-functional --splinter-headless --instafail --template=html1/index.html --report=functional-tests.html
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- functional-tests.html
|
|
- screenshots/
|
|
- plinth.log
|