-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from bluetech/releasing-pre-test
Add scripts for downstream testing
- Loading branch information
Showing
9 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/conda/ | ||
/datasette/ | ||
/devpi/ | ||
/hatch/ | ||
/pytest/ | ||
/tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This directory contains scripts for testing some downstream projects | ||
against your current pluggy worktree. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -eux -o pipefail | ||
if [[ ! -d conda ]]; then | ||
git clone https://github.com/conda/conda | ||
fi | ||
pushd conda && trap popd EXIT | ||
git pull | ||
set +eu | ||
source dev/start | ||
set -eu | ||
pip install -e ../../ | ||
pytest -m "not integration and not installed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -eux -o pipefail | ||
if [[ ! -d datasette ]]; then | ||
git clone https://github.com/simonw/datasette | ||
fi | ||
pushd datasette && trap popd EXIT | ||
git pull | ||
python -m venv venv | ||
venv/bin/pip install -e .[test] -e ../.. | ||
venv/bin/pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -eux -o pipefail | ||
if [[ ! -d devpi ]]; then | ||
git clone https://github.com/devpi/devpi | ||
fi | ||
pushd devpi && trap popd EXIT | ||
git pull | ||
python -m venv venv | ||
venv/bin/pip install -r dev-requirements.txt -e ../.. | ||
venv/bin/pytest common | ||
venv/bin/pytest server | ||
venv/bin/pytest client | ||
venv/bin/pytest web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -eux -o pipefail | ||
if [[ ! -d hatch ]]; then | ||
git clone https://github.com/pypa/hatch | ||
fi | ||
pushd hatch && trap popd EXIT | ||
git pull | ||
python -m venv venv | ||
venv/bin/pip install -e . -e ./backend -e ../.. | ||
venv/bin/hatch run dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -eux -o pipefail | ||
if [[ ! -d tox ]]; then | ||
git clone https://github.com/tox-dev/tox | ||
fi | ||
pushd tox && trap popd EXIT | ||
python -m venv venv | ||
venv/bin/pip install -e .[testing] -e ../.. | ||
venv/bin/pytest |