Browse Source

Fully vet the setup.py requirements and installed code during cibuild

pull/868/head
Ross McFarland 4 years ago
parent
commit
e495633aeb
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      script/cibuild

+ 12
- 0
script/cibuild View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
@ -27,4 +28,15 @@ echo "## tests/coverage ########################################################
script/coverage
echo "## validate setup.py build #####################################################"
python setup.py build
echo "## validate setup.py install ###################################################"
deactivate
TMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
python3 -m venv $TMP_DIR
source "$TMP_DIR/bin/activate"
python setup.py install
octodns-sync --help
echo "## validate tests can run against installed code ###############################"
pip install .[dev]
cd $TMP_DIR
pytest --disable-network
echo "## complete ####################################################################"

Loading…
Cancel
Save