Browse Source

Merge pull request #868 from octodns/cibuild-fully-vet

Fully vet the setup.py requirements and installed code during cibuild
pull/869/head
Ross McFarland 4 years ago
committed by GitHub
parent
commit
fe7f96e215
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 4 deletions
  1. +15
    -4
      script/cibuild

+ 15
- 4
script/cibuild View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
@ -6,16 +7,16 @@ cd "$(dirname "$0")/.."
echo "## bootstrap ###################################################################"
script/bootstrap
echo "## environment & versions ######################################################"
python --version
python -m pip --version
if [ -z "$VENV_NAME" ]; then
VENV_NAME="env"
fi
. "$VENV_NAME/bin/activate"
echo "## environment & versions ######################################################"
python --version
pip --version
echo "## clean up ####################################################################"
find octodns tests -name "*.pyc" -exec rm {} \;
rm -f *.pyc
@ -27,4 +28,14 @@ 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
. "$TMP_DIR/bin/activate"
python setup.py install
octodns-sync --help
echo "## validate tests can run against installed code ###############################"
pip install pytest pytest-network
pytest --disable-network
echo "## complete ####################################################################"

Loading…
Cancel
Save