mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 13:15:44 -05:00
add shellscript for running pytest, shellcheck *.sh
This commit is contained in:
parent
8b9fe661cf
commit
e17a69ed81
3 changed files with 6 additions and 4 deletions
|
@ -29,7 +29,7 @@ pytest:
|
|||
- pacman -Sy --noconfirm --needed archlinux-keyring && pacman -Su --noconfirm python python-pip sudo git
|
||||
- pip install pytest -r requirements.txt
|
||||
script:
|
||||
- script -e -c 'python -m pytest -v --junitxml=pytest-report.xml */test_*.py'
|
||||
- script -e -c './pytest.sh'
|
||||
artifacts:
|
||||
reports:
|
||||
junit: pytest-report.xml
|
||||
|
|
|
@ -5,7 +5,7 @@ autoflake_args=('--recursive' '--remove-unused-variables' '--remove-all-unused-i
|
|||
|
||||
format() {
|
||||
files=("$@")
|
||||
if [[ -z "${files[@]}" ]]; then
|
||||
if [[ -z "${files[*]}" ]]; then
|
||||
files=(".")
|
||||
fi
|
||||
|
||||
|
@ -14,8 +14,6 @@ format() {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if [[ "$1" == "--check" ]]; then
|
||||
yapf_args+=('--diff')
|
||||
shift
|
||||
|
|
4
pytest.sh
Executable file
4
pytest.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo -v
|
||||
python -m pytest -v ./*/test_*.py
|
Loading…
Add table
Reference in a new issue