File: pytest.sh

package info (click to toggle)
python-pluggy 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: python: 3,344; sh: 58; makefile: 6
file content (10 lines) | stat: -rwxr-xr-x 242 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
set -eux -o pipefail
if [[ ! -d pytest ]]; then
    git clone https://github.com/pytest-dev/pytest
fi
pushd pytest && trap popd EXIT
git pull
python -m venv venv
venv/bin/pip install -e .[testing] -e ../..
venv/bin/pytest