Skip to content
Snippets Groups Projects
Commit 93bb64ad authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Resolved merge conflict

parents bcf2603c aebd8e62
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Set up conda environment, if necessary,
# then in each module:
# 1. run setup
# 2. if there is a test/ subdirectory, execute pytest therein
TOP_LEVEL=/Users/jgoldste/Projects/data/
cd $TOP_LEVEL
if [ -z $CONDA_DEFAULT_ENV ]
then
echo '>>> Updating conda environment....'
conda env update
echo '>>> Activating....'
conda activate data
else
echo "conda environment '${CONDA_DEFAULT_ENV}' is active"
fi
SETUP=setup.py
echo ">>> looking for ${SETUP} in all modules...."
SETUPS=$(find . -name $SETUP -exec echo '{}' \;)
for item in $SETUPS
do
dir=$(dirname $item)
dir=${TOP_LEVEL}${dir:1}
cd ${dir}
if [ -z $? ]
then
exit $?
fi
echo ">>> running ${SETUP} in ${dir}...."
python setup.py develop
if [ -d $dir/test ]
then
cd test
pytest --log-level=DEBUG --showlocals
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment