Skip to content
Snippets Groups Projects
Commit 7ba13914 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Add a nice tool for building/testing/docing

parent 702a6bff
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
install=''
test=''
doc=''
while getopts 'it:d' flag; do
case "${flag}" in
i) install='true' ;;
t) test='true' ;;
d) doc='true' ;;
*) error "Unexpected option ${flag}" ;;
esac
done
if [ "$install" = 'true' ]; then
echo '*****************************'
echo ' Install '
echo '*****************************'
python setup.py install
fi
if [ "$test" = 'true' ]; then
echo '*****************************'
echo ' Test '
echo '*****************************'
python -m unittest discover navipy
fi
if [ "$doc" = 'true' ]; then
echo '*****************************'
echo ' Build doc '
echo '*****************************'
cd doc
make html
cd ..
fi
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